summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_run/RunCMakeTest.cmake
blob: d74add05ca403837f26752f722b214731631ba9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
include(RunCMake)

run_cmake(BadLinkLibraries)

if (CMAKE_SYSTEM_NAME MATCHES "^(Linux|Darwin|Windows)$" AND
    CMAKE_C_COMPILER_ID MATCHES "^(MSVC|GNU|LCC|Clang|AppleClang)$")
  set (RunCMake_TEST_OPTIONS -DRunCMake_C_COMPILER_ID=${CMAKE_C_COMPILER_ID})
  run_cmake(LinkOptions)
  unset (RunCMake_TEST_OPTIONS)
endif()

run_cmake(WorkingDirArg)