RunCMakeTest.cmake 630 B

1234567891011121314151617181920212223
  1. include(RunCMake)
  2. if(RunCMake_GENERATOR STREQUAL Xcode)
  3. if(XCODE_BELOW_6_1)
  4. run_cmake(XcodeTooOld)
  5. endif()
  6. elseif(RunCMake_GENERATOR STREQUAL Ninja)
  7. if(CMAKE_Swift_COMPILER)
  8. run_cmake(Win32ExecutableDisallowed)
  9. set(RunCMake_TEST_OPTIONS -DCMAKE_SYSTEM_NAME=Darwin)
  10. run_cmake(SwiftMultiArch)
  11. unset(RunCMake_TEST_OPTIONS)
  12. endif()
  13. elseif(RunCMake_GENERATOR STREQUAL "Ninja Multi-Config")
  14. if(CMAKE_Swift_COMPILER)
  15. set(RunCMake_TEST_OPTIONS "-DCMAKE_CONFIGURATION_TYPES=Debug\\;Release")
  16. run_cmake(SwiftSimple)
  17. unset(RunCMake_TEST_OPTIONS)
  18. endif()
  19. else()
  20. run_cmake(NotSupported)
  21. endif()