From: unknown Date: Tue, 26 Jul 2011 10:01:45 +0000 (+0200) Subject: The pcre library is static on win32 X-Git-Tag: v3_6_2~188^2~8^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/22900365bca30c4ba6a5444477e80232b0f394a2 The pcre library is static on win32 --- diff --git a/buildtools/Cmake/Flags.cmake b/buildtools/Cmake/Flags.cmake index 278388cdc9..95b1ae5717 100644 --- a/buildtools/Cmake/Flags.cmake +++ b/buildtools/Cmake/Flags.cmake @@ -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")