d74add05ca403837f26752f722b214731631ba9b
[platform/upstream/cmake.git] / Tests / RunCMake / try_run / RunCMakeTest.cmake
1 include(RunCMake)
2
3 run_cmake(BadLinkLibraries)
4
5 if (CMAKE_SYSTEM_NAME MATCHES "^(Linux|Darwin|Windows)$" AND
6     CMAKE_C_COMPILER_ID MATCHES "^(MSVC|GNU|LCC|Clang|AppleClang)$")
7   set (RunCMake_TEST_OPTIONS -DRunCMake_C_COMPILER_ID=${CMAKE_C_COMPILER_ID})
8   run_cmake(LinkOptions)
9   unset (RunCMake_TEST_OPTIONS)
10 endif()
11
12 run_cmake(WorkingDirArg)