RunCMakeTest.cmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. include(RunCMake)
  2. unset(RunCMake_TEST_NO_CLEAN)
  3. run_cmake(MissingDetails)
  4. run_cmake(DirectIgnoresDetails)
  5. run_cmake(FirstDetailsWin)
  6. run_cmake(DownloadTwice)
  7. run_cmake(DownloadFile)
  8. run_cmake(SameGenerator)
  9. run_cmake(VarDefinitions)
  10. run_cmake(GetProperties)
  11. run_cmake(DirOverrides)
  12. run_cmake(UsesTerminalOverride)
  13. run_cmake(MakeAvailable)
  14. run_cmake(MakeAvailableTwice)
  15. run_cmake(MakeAvailableUndeclared)
  16. set(RunCMake_TEST_OUTPUT_MERGE 1)
  17. run_cmake(PreserveEmptyArgs)
  18. set(RunCMake_TEST_OUTPUT_MERGE 0)
  19. # We need to pass through CMAKE_GENERATOR and CMAKE_MAKE_PROGRAM
  20. # to ensure the test can run on machines where the build tool
  21. # isn't on the PATH. Some build slaves explicitly test with such
  22. # an arrangement (e.g. to test with spaces in the path). We also
  23. # pass through the platform and toolset for completeness, even
  24. # though we don't build anything, just in case this somehow affects
  25. # the way the build tool is invoked.
  26. run_cmake_command(ScriptMode
  27. ${CMAKE_COMMAND}
  28. -DCMAKE_GENERATOR=${RunCMake_GENERATOR}
  29. -DCMAKE_GENERATOR_PLATFORM=${RunCMake_GENERATOR_PLATFORM}
  30. -DCMAKE_GENERATOR_TOOLSET=${RunCMake_GENERATOR_TOOLSET}
  31. -DCMAKE_MAKE_PROGRAM=${RunCMake_MAKE_PROGRAM}
  32. -P ${CMAKE_CURRENT_LIST_DIR}/ScriptMode.cmake
  33. )