vcpkg/ports/pcre/fix-option-2.patch

25 lines
760 B
Diff
Raw Normal View History

diff --git b/CMakeLists.txt a/CMakeLists.txt
index 858a34bd..d1a64570 100644
--- b/CMakeLists.txt
+++ a/CMakeLists.txt
@@ -74,7 +74,6 @@ PROJECT(PCRE C CXX)
# CMP0026 to avoid warnings for the use of LOCATION in GET_TARGET_PROPERTY.
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
-CMAKE_POLICY(SET CMP0026 OLD)
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake
@@ -191,9 +190,8 @@ IF (MINGW)
ENDIF(MINGW)
IF(MSVC)
- OPTION(PCRE_STATIC_RUNTIME
- "ON=Compile against the static runtime (/MT)."
- OFF)
2017-07-12 23:47:19 +08:00
+ add_definitions(/wd4703 /wd4146 /wd4308)
+ OPTION(PCRE_STATIC_RUNTIME "ON=Compile against the static runtime (/MT)." OFF)
OPTION(INSTALL_MSVC_PDB
"ON=Install .pdb files built by MSVC, if generated"
OFF)