mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 08:57:55 +08:00
25 lines
760 B
Diff
25 lines
760 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 /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)
|