diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2018-02-17 15:15:57 (GMT) |
---|---|---|
committer | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2018-02-17 15:15:57 (GMT) |
commit | 67db3ff958302d09dca208ff54c699beb4a9d13d (patch) | |
tree | b09b5d9c1167e6fda671fb909cc2f77fcc7688a2 /Modules/FindwxWidgets.cmake | |
parent | 3b6fe84cb764b27d70500ba416a58b9a8d641929 (diff) | |
download | CMake-67db3ff958302d09dca208ff54c699beb4a9d13d.zip CMake-67db3ff958302d09dca208ff54c699beb4a9d13d.tar.gz CMake-67db3ff958302d09dca208ff54c699beb4a9d13d.tar.bz2 |
Fix eating "-L" in path names
When the path containing the wxLibraries contains a "-L", a "string(REPLACE "-L" ...)
replaces the content and results in a wrong path. The regex fixes this.
Diffstat (limited to 'Modules/FindwxWidgets.cmake')
-rw-r--r-- | Modules/FindwxWidgets.cmake | 2 |
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}") |