RunCMakeTest.cmake 1004 B

12345678910111213141516171819202122232425262728
  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(SameGenerator)
  8. run_cmake(VarDefinitions)
  9. run_cmake(GetProperties)
  10. run_cmake(DirOverrides)
  11. # We need to pass through CMAKE_GENERATOR and CMAKE_MAKE_PROGRAM
  12. # to ensure the test can run on machines where the build tool
  13. # isn't on the PATH. Some build slaves explicitly test with such
  14. # an arrangement (e.g. to test with spaces in the path). We also
  15. # pass through the platform and toolset for completeness, even
  16. # though we don't build anything, just in case this somehow affects
  17. # the way the build tool is invoked.
  18. run_cmake_command(ScriptMode
  19. ${CMAKE_COMMAND}
  20. -DCMAKE_GENERATOR=${RunCMake_GENERATOR}
  21. -DCMAKE_GENERATOR_PLATFORM=${RunCMake_GENERATOR_PLATFORM}
  22. -DCMAKE_GENERATOR_TOOLSET=${RunCMake_GENERATOR_TOOLSET}
  23. -DCMAKE_MAKE_PROGRAM=${RunCMake_MAKE_PROGRAM}
  24. -P ${CMAKE_CURRENT_LIST_DIR}/ScriptMode.cmake
  25. )