summaryrefslogtreecommitdiff
path: root/Modules/FindwxWindows.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-31 13:15:42 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-31 13:15:42 -0400
commit388d27429064bcf930914aa03b30b031849acfbe (patch)
tree66034c2741990899f3d7b8d1a166f6f636ca0ea0 /Modules/FindwxWindows.cmake
parente8a3e9392b7c7f5139b9d80e01e25ce2bf4c774b (diff)
downloadcmake-388d27429064bcf930914aa03b30b031849acfbe.tar.gz
made a minor bugfix on my FindwxWindows.cmake.
I capsulated the regular expression matching for the libdrs with another IF (line 355). By: Jan Woetzel
Diffstat (limited to 'Modules/FindwxWindows.cmake')
-rw-r--r--Modules/FindwxWindows.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/FindwxWindows.cmake b/Modules/FindwxWindows.cmake
index 9f21a73440..abf4fd9bb6 100644
--- a/Modules/FindwxWindows.cmake
+++ b/Modules/FindwxWindows.cmake
@@ -357,9 +357,11 @@ IF (UNIX)
## remove prefix -L because we need the pure directory for LINK_DIRECTORIES
## replace -L by ; because the separator seems to be lost otherwise (bug or
## feature?)
- STRING(REGEX REPLACE "[-][L]" ";" WXWINDOWS_LINK_DIRECTORIES ${WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX} )
- #MESSAGE("DBG WXWINDOWS_LINK_DIRECTORIES=${WXWINDOWS_LINK_DIRECTORIES}")
-
+ IF(WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX)
+ STRING(REGEX REPLACE "[-][L]" ";" WXWINDOWS_LINK_DIRECTORIES ${WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX} )
+ #MESSAGE("DBG WXWINDOWS_LINK_DIRECTORIES=${WXWINDOWS_LINK_DIRECTORIES}")
+ ENDIF(WXWINDOWS_LINK_DIRECTORIES_WITH_PREFIX)
+
## replace space separated string by semicolon separated vector to make it
## work with LINK_DIRECTORIES