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:
Brad King
2020-05-26 09:18:52 -04:00
parent 279f6f0c2c
commit 1c97a3c442

View File

@@ -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()