Merge pull request #7715

0c13623 cmake: fix check_linker_flag (selsta)
This commit is contained in:
luigi1111 2021-06-01 22:09:01 -05:00
commit 21c6376f33
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -15,6 +15,7 @@ macro(CHECK_LINKER_FLAG flag VARIABLE)
${_cle_source} ${_cle_source}
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} ${flag} COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} ${flag}
CMAKE_FLAGS CMAKE_FLAGS
"-DCMAKE_EXE_LINKER_FLAGS=${flag}"
OUTPUT_VARIABLE OUTPUT) OUTPUT_VARIABLE OUTPUT)
unset(_cle_source) unset(_cle_source)
set(CMAKE_C_FLAGS ${saved_CMAKE_C_FLAGS}) set(CMAKE_C_FLAGS ${saved_CMAKE_C_FLAGS})