aboutsummaryrefslogtreecommitdiff
path: root/cmake/CheckLinkerFlag.cmake
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-05-12 02:09:55 +0200
committerselsta <selsta@sent.at>2021-05-12 02:09:55 +0200
commit0c13623411779778479c3c3fe8c8d2163ddfb4b0 (patch)
tree353992aecc8cf9ab5eed32fea7a829560057567e /cmake/CheckLinkerFlag.cmake
parentMerge pull request #7669 (diff)
downloadmonero-0c13623411779778479c3c3fe8c8d2163ddfb4b0.tar.xz
cmake: fix check_linker_flag
Diffstat (limited to 'cmake/CheckLinkerFlag.cmake')
-rw-r--r--cmake/CheckLinkerFlag.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/CheckLinkerFlag.cmake b/cmake/CheckLinkerFlag.cmake
index 2b507ab71..7ecf5f610 100644
--- a/cmake/CheckLinkerFlag.cmake
+++ b/cmake/CheckLinkerFlag.cmake
@@ -15,6 +15,7 @@ macro(CHECK_LINKER_FLAG flag VARIABLE)
${_cle_source}
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} ${flag}
CMAKE_FLAGS
+ "-DCMAKE_EXE_LINKER_FLAGS=${flag}"
OUTPUT_VARIABLE OUTPUT)
unset(_cle_source)
set(CMAKE_C_FLAGS ${saved_CMAKE_C_FLAGS})