summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckLinkerFlag/RunCMakeTest.cmake
blob: 6ec914806ca066f382642b05f885c13a5aca47fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include(RunCMake)

if (CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
  run_cmake(CheckCLinkerFlag)
  run_cmake(CheckCXXLinkerFlag)
  if (APPLE)
    run_cmake(CheckOBJCLinkerFlag)
    run_cmake(CheckOBJCXXLinkerFlag)
  endif()
endif()

if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
  run_cmake(CheckFortranLinkerFlag)
endif()

if (CMake_TEST_CUDA)
  run_cmake(CheckCUDALinkerFlag)
endif()