summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-26 13:18:52 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-26 13:18:52 (GMT)
commit1c97a3c442b0de70fde9b493c77c43b69e995976 (patch)
treed41a27520e10171388dfc791c6401876aae81efb /Tests
parent279f6f0c2cccc059e8e94a19a9a8dfa769b85624 (diff)
downloadCMake-1c97a3c442b0de70fde9b493c77c43b69e995976.zip
CMake-1c97a3c442b0de70fde9b493c77c43b69e995976.tar.gz
CMake-1c97a3c442b0de70fde9b493c77c43b69e995976.tar.bz2
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.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/install/RunCMakeTest.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/RunCMake/install/RunCMakeTest.cmake b/Tests/RunCMake/install/RunCMakeTest.cmake
index a681c7e..c50e552 100644
--- a/Tests/RunCMake/install/RunCMakeTest.cmake
+++ b/Tests/RunCMake/install/RunCMakeTest.cmake
@@ -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()