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

run_cmake(empty_keyword_args)
run_cmake(unknown_imported_target)


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)