aboutsummaryrefslogtreecommitdiff
path: root/ports/pcre/fix-option-2.patch
blob: de78c5f16ae8f8cb83530349297053b24e28399b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
+  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)