RunCMakeTest.cmake 399 B

1234567891011121314151617
  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. else()
  14. run_cmake(NotSupported)
  15. endif()