summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Swift/RunCMakeTest.cmake
blob: 918df0bed851cb19882589a048672887aa0923b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include(RunCMake)

if(RunCMake_GENERATOR STREQUAL Xcode)
  if(XCODE_BELOW_6_1)
    run_cmake(XcodeTooOld)
  endif()
elseif(RunCMake_GENERATOR STREQUAL Ninja)
  if(CMAKE_Swift_COMPILER)
    run_cmake(Win32ExecutableDisallowed)

    set(RunCMake_TEST_OPTIONS -DCMAKE_SYSTEM_NAME=Darwin)
    run_cmake(SwiftMultiArch)
    unset(RunCMake_TEST_OPTIONS)
  endif()
else()
  run_cmake(NotSupported)
endif()