1
0

RunCMakeTest.cmake 1.1 KB

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