Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The pcre library is static on win32
authorunknown <pierre@.(none)>
Tue, 26 Jul 2011 10:01:45 +0000 (12:01 +0200)
committerunknown <pierre@.(none)>
Tue, 26 Jul 2011 12:56:19 +0000 (14:56 +0200)
buildtools/Cmake/Flags.cmake

index 278388c..95b1ae5 100644 (file)
@@ -30,6 +30,10 @@ set(CMAKE_C_FLAGS "${optCFLAGS}${warnCFLAGS}${CMAKE_C_FLAGS}")
 
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${custom_flags}")
 
+if(HAVE_PCRE_LIB AND WIN32)
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPCRE_STATIC")
+endif(HAVE_PCRE_LIB AND WIN32)
+
 # Try to make Mac a bit more complient to open source standards
 if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_XOPEN_SOURCE")