summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-02-21 15:43:33 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-02-21 15:43:40 (GMT)
commitfcae625f48856883e9dd3733d87c5d1703ad011c (patch)
tree7cd59bcc17996edd76014754f7bae0b8ab1f064d
parent283562624c6a29ce0bad9beca81571f4691ca29d (diff)
parent67db3ff958302d09dca208ff54c699beb4a9d13d (diff)
downloadCMake-fcae625f48856883e9dd3733d87c5d1703ad011c.zip
CMake-fcae625f48856883e9dd3733d87c5d1703ad011c.tar.gz
CMake-fcae625f48856883e9dd3733d87c5d1703ad011c.tar.bz2
Merge topic 'FindwxWidget/fix-eating-minusL-in-path'
67db3ff9 Fix eating "-L" in path names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1775
-rw-r--r--Modules/FindwxWidgets.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake
index e21ec38..965948e 100644
--- a/Modules/FindwxWidgets.cmake
+++ b/Modules/FindwxWidgets.cmake
@@ -837,7 +837,7 @@ else()
# extract linkdirs (-L) for rpath (i.e., LINK_DIRECTORIES)
string(REGEX MATCHALL "-L[^;]+"
wxWidgets_LIBRARY_DIRS "${wxWidgets_LIBRARIES}")
- string(REPLACE "-L" ""
+ string(REGEX REPLACE "-L([^;]+)" "\\1"
wxWidgets_LIBRARY_DIRS "${wxWidgets_LIBRARY_DIRS}")
DBG_MSG_V("wxWidgets_LIBRARIES=${wxWidgets_LIBRARIES}")