You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of #542, however, the minimum CMake version is now 3.15, which means the /MD or MT flags are now provided by CMake's CMAKE_MSVC_RUNTIME_LIBRARY variable and absent in these FLAGS variables, unless CMAKE_POLICY_DEFAULT_CMP0091 is set to OLD.
Overriding CMAKE_MSVC_RUNTIME_LIBRARY at the command line now suffices, so it is best to remove PCRE2_STATIC_RUNTIME entirely, or make it modify CMAKE_MSVC_RUNTIME_LIBRARY instead. (Setting CMAKE_POLICY_DEFAULT_CMP0091 to NEW also allows CMake 3.15 or above to apply CMAKE_MSVC_RUNTIME_LIBRARY to previous PCRE2 releases that had a lower minimum version in CMakeLists.txt.)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
CMakeLists.txt
currently replaces theCMAKE_<LANG>_FLAGS_<CONFIG>
variables directly in order to select a suitable MSVC runtime library:pcre2/CMakeLists.txt
Lines 840 to 855 in 0986559
As of #542, however, the minimum CMake version is now 3.15, which means the
/MD
orMT
flags are now provided by CMake'sCMAKE_MSVC_RUNTIME_LIBRARY
variable and absent in theseFLAGS
variables, unlessCMAKE_POLICY_DEFAULT_CMP0091
is set toOLD
.Overriding
CMAKE_MSVC_RUNTIME_LIBRARY
at the command line now suffices, so it is best to removePCRE2_STATIC_RUNTIME
entirely, or make it modifyCMAKE_MSVC_RUNTIME_LIBRARY
instead. (SettingCMAKE_POLICY_DEFAULT_CMP0091
toNEW
also allows CMake 3.15 or above to applyCMAKE_MSVC_RUNTIME_LIBRARY
to previous PCRE2 releases that had a lower minimum version inCMakeLists.txt
.)The text was updated successfully, but these errors were encountered: