summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileDefinitions/RunCMakeTest.cmake
blob: eebcd2279a94475be3151b34d2b2c95e76e0a429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include(RunCMake)

run_cmake(SetEmpty)


macro(run_cmake_build test)
  set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${test}-build)
  set(RunCMake_TEST_NO_CLEAN 1)
  run_cmake_command(${test} ${CMAKE_COMMAND} --build . --config Release)

  unset(RunCMake_TEST_BINARY_DIR)
  unset(RunCMake_TEST_NO_CLEAN)
endmacro()

run_cmake(RemoveLeadingMinusD)
run_cmake_build(RemoveLeadingMinusD)