llvm.org GIT mirror llvm / 93051ef cmake / modules / CheckLinkerFlag.cmake
93051ef

Tree @93051ef (Download .tar.gz)

CheckLinkerFlag.cmake @93051efraw · history · blame

1
2
3
4
5
6
include(CheckCXXCompilerFlag)

function(check_linker_flag flag out_var)
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${flag}")
  check_cxx_compiler_flag("" ${out_var})
endfunction()