mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
Tests: Fix RunCMake.install LDFLAGS treatment
In commit d806bd2e8c (Tests: Update test suite to run in an Anaconda
environment, 2020-03-30) an extra `}` was left in the value of the
modified `LDFLAGS`. Remove it. While at it, simplify the code.
This commit is contained in:
@@ -176,8 +176,7 @@ elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
|
||||
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(DEFINED ENV{LDFLAGS})
|
||||
# Some setups prebake disable-new-dtags into LDFLAGS
|
||||
set(new_ldflags $ENV{LDFLAGS}})
|
||||
string(REPLACE "-Wl,--disable-new-dtags" "" new_ldflags "${new_ldflags}")
|
||||
string(REPLACE "-Wl,--disable-new-dtags" "" new_ldflags "$ENV{LDFLAGS}")
|
||||
set(ENV{LDFLAGS} "${new_ldflags}")
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user