[pcre-dev] [Bug 1681] CMake compiles PCRE dynamically even w…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Old-Topics: [pcre-dev] [Bug 1681] New: CMake compiles PCRE dynamically even when set to static
Subject: [pcre-dev] [Bug 1681] CMake compiles PCRE dynamically even when set to static
https://bugs.exim.org/show_bug.cgi?id=1681

--- Comment #12 from Orvid King <blah38621@???> ---
The .exe forms don't matter in this particular case, as PCRE is a library
rather than a program. (I'm ignoring the existence of the test programs and
utils for the sake of simplicity)

.lib /MT: cmake -DPCRE_STATIC=TRUE -DPCRE_STATIC_RUNTIME=TRUE
.lib /MD: cmake -DPCRE_STATIC=TRUE -DPCRE_STATIC_RUNTIME=FALSE
.dll /MD: cmake -DPCRE_STATIC=FALSE -DPCRE_STATIC_RUNTIME=FALSE

The .dll /MT case is invalid and would crash if you tried to use it. (I'm not
sure that MSVC actually lets you do that to begin with)

The options that I've set to FALSE for the purposes of clarity don't actually
need to be passed, as both PCRE_STATIC and PCRE_STATIC_RUNTIME default to
false.

--
You are receiving this mail because:
You are on the CC list for the bug.