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

function(run_cmake_CMP0060 CASE)
  set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/CMP0060-${CASE}-build)
  set(RunCMake_TEST_NO_CLEAN 1)
  file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
  file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")

  run_cmake(CMP0060-${CASE})
  set(RunCMake_TEST_OUTPUT_MERGE 1)
  run_cmake_command(CMP0060-${CASE}-Build
    ${CMAKE_COMMAND} --build . --config Debug
    )
endfunction()

run_cmake_CMP0060(OLD)
run_cmake_CMP0060(WARN-OFF)
run_cmake_CMP0060(WARN-ON)
run_cmake_CMP0060(NEW)