RunCMakeTest.cmake 1.1 KB

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