diff options
author | Brad King <brad.king@kitware.com> | 2014-12-03 19:52:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-03 19:53:14 (GMT) |
commit | a4f9b6f0ca9248530b9749b7fa9628053a3f8f98 (patch) | |
tree | b3f28fc0e296c43836821abda5dd67172ea91cc0 /Modules | |
parent | dc3b222143d16ef0af6e6450f7869ec418b911d7 (diff) | |
download | CMake-a4f9b6f0ca9248530b9749b7fa9628053a3f8f98.zip CMake-a4f9b6f0ca9248530b9749b7fa9628053a3f8f98.tar.gz CMake-a4f9b6f0ca9248530b9749b7fa9628053a3f8f98.tar.bz2 |
CMakeDetermineCompilerABI: Use normal linker flags in ABI project
When compiling the ABI detection test project, do not override
CMAKE_EXE_LINKER_FLAGS completely. The normally selected value of this
variable may influence how the link is done and may be needed to be
representative of how the calling project will be built. Instead pass a
variable that try_compile will reference as additional flags. Leave
this behavior of try_compile undocumented for now.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineCompilerABI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake index 4bc42dd..344ae47 100644 --- a/Modules/CMakeDetermineCompilerABI.cmake +++ b/Modules/CMakeDetermineCompilerABI.cmake @@ -26,7 +26,7 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src) set(BIN "${CMAKE_PLATFORM_INFO_DIR}/CMakeDetermineCompilerABI_${lang}.bin") set(CMAKE_FLAGS ) if(DEFINED CMAKE_${lang}_VERBOSE_FLAG) - set(CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_${lang}_VERBOSE_FLAG}") + set(CMAKE_FLAGS "-DEXE_LINKER_FLAGS=${CMAKE_${lang}_VERBOSE_FLAG}") endif() if(NOT "x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xMSVC") # Avoid adding our own platform standard libraries for compilers |