From 8a685a1ee34e8037a7d6702a866a95eab28e123e Mon Sep 17 00:00:00 2001 From: branan Date: Sun, 20 Jan 2013 21:33:59 -0800 Subject: [PATCH] Add option to build with static libpcre --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5459d713..debc54b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,12 @@ if(CURL_IS_STATIC) add_definitions(-DCURL_STATICLIB) endif(CURL_IS_STATIC) +#libpcre isn't smart enough to detect this either +option(PCRE_IS_STATIC "Using the static version of libpcre?" ON) +if(PCRE_IS_STATIC) + add_definitions(-DPCRE_STATIC) +endif(PCRE_IS_STATIC) + option(PLASMA_EXTERNAL_RELEASE "Is this release intended for the general public?" OFF) if(PLASMA_EXTERNAL_RELEASE) add_definitions(-DPLASMA_EXTERNAL_RELEASE)