mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 15:39:01 +08:00
25 lines
744 B
Diff
25 lines
744 B
Diff
|
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)
|
||
|
+ 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)
|