aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-06-01 22:09:01 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-06-01 22:09:01 -0500
commit21c6376f3354c284efca7fe45b0ceac88727060f (patch)
treeac3ef82e40c0fc117193c53d5428490fa464d5bb
parentMerge pull request #7713 (diff)
parentcmake: fix check_linker_flag (diff)
downloadmonero-21c6376f3354c284efca7fe45b0ceac88727060f.tar.xz
Merge pull request #7715
0c13623 cmake: fix check_linker_flag (selsta)
-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})