Browse Source

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

Andy Cedilnik 22 years ago
parent
commit
388d274290
1 changed files with 5 additions and 3 deletions
  1. 5 3
      Modules/FindwxWindows.cmake

+ 5 - 3
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