mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
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.
This commit is contained in:
1 parent
3b6fe84cb7
commit
67db3ff958
1 file changed
+1
-1
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user