llvm-for-llvmta/cmake/modules/CheckLinkerFlag.cmake

7 lines
193 B
CMake
Raw Normal View History

2022-04-25 10:02:23 +02:00
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()