summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_compile_definitions/RunCMakeTest.cmake
blob: 27d77ef11283292fd1b0720e64728801142160c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include(RunCMake)

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(remove_leading_minusD)
run_cmake_build(remove_leading_minusD)