aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-11-11 22:43:07 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-11-11 22:46:04 -0800
commit6732d76e14678b51a69a8ae4b151e3d4fce6edaf (patch)
tree5bf3c48d5b16c0b1cceb477edbb3432fea0d8849
parente4786a054d53d1c7f3f1ae24ce6004733af61a43 (diff)
downloadvcpkg-6732d76e14678b51a69a8ae4b151e3d4fce6edaf.tar.gz
vcpkg-6732d76e14678b51a69a8ae4b151e3d4fce6edaf.zip
Fix header conflict caused by wincrypt/winsock2 and older Windows SDKs
If a project was using Windows 7 SDK and vcpkg was integrated, the project would fail to build (the vcpkg ports use Windows 8.1/10 SDK)
-rw-r--r--ports/wincrypt/CONTROL2
-rw-r--r--ports/wincrypt/portfile.cmake16
-rw-r--r--ports/winsock2/CONTROL2
-rw-r--r--ports/winsock2/portfile.cmake16
4 files changed, 10 insertions, 26 deletions
diff --git a/ports/wincrypt/CONTROL b/ports/wincrypt/CONTROL
index 78803229c..c83865407 100644
--- a/ports/wincrypt/CONTROL
+++ b/ports/wincrypt/CONTROL
@@ -1,3 +1,3 @@
Source: wincrypt
-Version: 0.0
+Version: 0.0-1
Description: Windows Cryptography. \ No newline at end of file
diff --git a/ports/wincrypt/portfile.cmake b/ports/wincrypt/portfile.cmake
index 8ded1cdc4..6ce62cfee 100644
--- a/ports/wincrypt/portfile.cmake
+++ b/ports/wincrypt/portfile.cmake
@@ -18,17 +18,6 @@ if (NOT EXISTS "${LIBFILEPATH}")
message(FATAL_ERROR "Cannot find Windows ${WINDOWS_SDK} SDK. File does not exist: ${LIBFILEPATH}")
endif()
-file(MAKE_DIRECTORY
- ${CURRENT_PACKAGES_DIR}/include
- ${CURRENT_PACKAGES_DIR}/lib
- ${CURRENT_PACKAGES_DIR}/debug/lib
- ${CURRENT_PACKAGES_DIR}/share/wincrypt
-)
-
-file(COPY
- "${HEADERSPATH}\\Wincrypt.h"
- DESTINATION ${CURRENT_PACKAGES_DIR}/include
- )
file(COPY ${LIBFILEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
file(COPY ${LIBFILEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
@@ -37,4 +26,7 @@ if (DEFINED LICENSEPATH)
file(WRITE ${CURRENT_PACKAGES_DIR}/share/wincrypt/copyright "See the accompanying sdk_license.rtf")
else()
file(WRITE ${CURRENT_PACKAGES_DIR}/share/wincrypt/copyright "See https://developer.microsoft.com/en-us/windows/downloads/windows-8-1-sdk for the Windows 8.1 SDK license")
-endif() \ No newline at end of file
+endif()
+
+# Allow empty include directory
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) \ No newline at end of file
diff --git a/ports/winsock2/CONTROL b/ports/winsock2/CONTROL
index 4b56e50bf..298fd7ebd 100644
--- a/ports/winsock2/CONTROL
+++ b/ports/winsock2/CONTROL
@@ -1,3 +1,3 @@
Source: winsock2
-Version: 0.0
+Version: 0.0-1
Description: Windows Sockets. \ No newline at end of file
diff --git a/ports/winsock2/portfile.cmake b/ports/winsock2/portfile.cmake
index 81fd38992..0f55c1227 100644
--- a/ports/winsock2/portfile.cmake
+++ b/ports/winsock2/portfile.cmake
@@ -18,17 +18,6 @@ if (NOT EXISTS "${LIBFILEPATH}")
message(FATAL_ERROR "Cannot find Windows ${WINDOWS_SDK} SDK. File does not exist: ${LIBFILEPATH}")
endif()
-file(MAKE_DIRECTORY
- ${CURRENT_PACKAGES_DIR}/include
- ${CURRENT_PACKAGES_DIR}/lib
- ${CURRENT_PACKAGES_DIR}/debug/lib
- ${CURRENT_PACKAGES_DIR}/share/winsock2
-)
-
-file(COPY
- "${HEADERSPATH}\\Winsock2.h"
- DESTINATION ${CURRENT_PACKAGES_DIR}/include
- )
file(COPY ${LIBFILEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
file(COPY ${LIBFILEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
@@ -37,4 +26,7 @@ if (DEFINED LICENSEPATH)
file(WRITE ${CURRENT_PACKAGES_DIR}/share/winsock2/copyright "See the accompanying sdk_license.rtf")
else()
file(WRITE ${CURRENT_PACKAGES_DIR}/share/winsock2/copyright "See https://developer.microsoft.com/en-us/windows/downloads/windows-8-1-sdk for the Windows 8.1 SDK license")
-endif() \ No newline at end of file
+endif()
+
+# Allow empty include directory
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) \ No newline at end of file