mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-27 13:10:52 +00:00
Fix building pdal after VS2019 upgrade (#8326)
This commit is contained in:
parent
3532a7cf3c
commit
863285f627
15
ports/proj4/0004-CMake-skip-msvc-check.patch
Normal file
15
ports/proj4/0004-CMake-skip-msvc-check.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/project-config-version.cmake.in b/project-config-version.cmake.in
|
||||
index ce2820c..f90706c 100644
|
||||
--- a/project-config-version.cmake.in
|
||||
+++ b/project-config-version.cmake.in
|
||||
@@ -18,10 +18,6 @@ elseif (NOT (APPLE OR (NOT DEFINED CMAKE_SIZEOF_VOID_P) OR
|
||||
# since a multi-architecture library is built for that platform).
|
||||
set (REASON "sizeof(*void) = @CMAKE_SIZEOF_VOID_P@")
|
||||
set (PACKAGE_VERSION_UNSUITABLE TRUE)
|
||||
-elseif (MSVC AND NOT MSVC_VERSION STREQUAL "@MSVC_VERSION@")
|
||||
- # Reject if there's a mismatch in MSVC compiler versions
|
||||
- set (REASON "_MSC_VER = @MSVC_VERSION@")
|
||||
- set (PACKAGE_VERSION_UNSUITABLE TRUE)
|
||||
elseif (NOT CMAKE_CROSSCOMPILING STREQUAL "@CMAKE_CROSSCOMPILING@")
|
||||
# Reject if there's a mismatch in ${CMAKE_CROSSCOMPILING}
|
||||
set (REASON "cross-compiling = @CMAKE_CROSSCOMPILING@")
|
@ -16,6 +16,7 @@ vcpkg_extract_source_archive_ex(
|
||||
0001-CMake-add-detection-of-recent-visual-studio-versions.patch
|
||||
0002-CMake-fix-error-by-only-setting-properties-for-targe.patch
|
||||
0003-CMake-configurable-cmake-config-install-location.patch
|
||||
0004-CMake-skip-msvc-check.patch
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
|
Loading…
Reference in New Issue
Block a user