summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCommonLanguageInclude.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CMakeCommonLanguageInclude.cmake')
-rw-r--r--Modules/CMakeCommonLanguageInclude.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeCommonLanguageInclude.cmake b/Modules/CMakeCommonLanguageInclude.cmake
index 1ed1543..3f23c48 100644
--- a/Modules/CMakeCommonLanguageInclude.cmake
+++ b/Modules/CMakeCommonLanguageInclude.cmake
@@ -2,6 +2,10 @@
# cache values that can be initialized in the platform-compiler.cmake file
# it may be included by more than one language.
+SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
+ CACHE STRING "Flags used by the linker.")
+
+
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
# default build type is none
IF(NOT CMAKE_NO_BUILD_TYPE)