Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : in second test unit, snapshot comparison done before MC_UNSET_RAW_MEM...
[simgrid.git] / doc / HelloWorld / FindPcreWin.cmake
index f2e1ad3..226c0fe 100644 (file)
@@ -6,7 +6,7 @@ find_library(PATH_PCRE_LIB
     $ENV{PCRE_LIBRARY_PATH}
     PATH_SUFFIXES bin/ GnuWin32/bin
     )
-
+        
 find_path(PATH_PCRE_H "pcre.h"
     HINTS
     $ENV{SIMGRID_PCRE_LIBRARY_PATH}
@@ -33,7 +33,9 @@ if(PATH_PCRE_LIB AND PATH_PCRE_H)
           string(REGEX MATCH "-I${PATH_PCRE_H} " operation "${CMAKE_C_FLAGS}")
           if(NOT operation)
                        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${PATH_PCRE_H} ")
-          endif(NOT operation)    
+          endif(NOT operation)
+          string(REGEX REPLACE "/libpcre.dll" "" PATH_PCRE_LIB  "${PATH_PCRE_LIB}")
+       link_directories(${PATH_PCRE_LIB})   
 else(PATH_PCRE_LIB)
           message(FATAL_ERROR "Please install the pcre package before using SimGrid.")
 endif(PATH_PCRE_LIB AND PATH_PCRE_H)