From: navarrop Date: Mon, 13 Dec 2010 12:09:44 +0000 (+0000) Subject: Add an hide option "enable_pcre" for enable or not pcre lib. X-Git-Tag: v3.6_beta2~777 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/db05675574d8c8bfafd025fbaadf6e145ce41ecb Add an hide option "enable_pcre" for enable or not pcre lib. By default = on. Use for personal test only. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9146 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index 39107f506c..cb9488380e 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -13,7 +13,9 @@ include(TestBigEndian) TEST_BIG_ENDIAN(BIGENDIAN) include(FindGraphviz) +if(enable_pcre) include(FindPCRE) +endif(enable_pcre) if(enable_gtnets) include(FindGTnets) endif(enable_gtnets) diff --git a/buildtools/Cmake/Option.cmake b/buildtools/Cmake/Option.cmake index 82a6439aa5..0b121faf38 100644 --- a/buildtools/Cmake/Option.cmake +++ b/buildtools/Cmake/Option.cmake @@ -20,6 +20,7 @@ option(enable_java "Whether the Java bindings are activated." on) option(enable_smpi "This variable set smpi lib." on) option(enable_lua "Whether the lua bindings are activated." on) option(enable_ruby "Whether the Ruby bindings are activated." on) +option(enable_pcre "Whether the pcre lib is activated." on) if(WIN32 OR APPLE) set(enable_smpi off CACHE TYPE INTERNAL FORCE) @@ -75,4 +76,5 @@ mark_as_advanced(CMAKE_OSX_ARCHITECTURES) mark_as_advanced(CMAKE_OSX_DEPLOYMENT_TARGET) mark_as_advanced(CMAKE_OSX_SYSROOT) mark_as_advanced(SED_EXE) -mark_as_advanced(BIBTEX2HTML) \ No newline at end of file +mark_as_advanced(BIBTEX2HTML) +mark_as_advanced(enable_pcre) \ No newline at end of file