summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-27 12:18:30 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-05-27 12:18:41 (GMT)
commitb12ac3ebc0e26f224613d2b2488a7ad50e1a85b8 (patch)
tree86698f6c3bf82e94e022b784c56d7a54b63da485 /Tests
parent3a9b257ee75e5eac8aea023cc23ad6d3c1b6abdf (diff)
parent1c97a3c442b0de70fde9b493c77c43b69e995976 (diff)
downloadCMake-b12ac3ebc0e26f224613d2b2488a7ad50e1a85b8.zip
CMake-b12ac3ebc0e26f224613d2b2488a7ad50e1a85b8.tar.gz
CMake-b12ac3ebc0e26f224613d2b2488a7ad50e1a85b8.tar.bz2
Merge topic 'test-RunCMake.install-LDFLAGS'
1c97a3c442 Tests: Fix RunCMake.install LDFLAGS treatment Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !4793
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()