aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/capnproto/portfile.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/ports/capnproto/portfile.cmake b/ports/capnproto/portfile.cmake
index 64aa68c95..35ac53fcd 100644
--- a/ports/capnproto/portfile.cmake
+++ b/ports/capnproto/portfile.cmake
@@ -1,7 +1,12 @@
-if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
message(FATAL_ERROR "Error: UWP build is not supported.")
endif()
+if(DEFINED VCPKG_CMAKE_SYSTEM_NAME)
+ # Undefined VCPKG_CMAKE_SYSTEM_NAME means Windows
+ message(FATAL_ERROR "Error: CapnProto only build on Windows for now. See #5630 and #5635")
+endif()
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
message("Building DLLs not supported. Building static instead.")
set(VCPKG_LIBRARY_LINKAGE static)
@@ -36,4 +41,5 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/capnproto)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/capnproto/LICENSE ${CURRENT_PACKAGES_DIR}/share/capnproto/copyright)
-vcpkg_test_cmake(PACKAGE_NAME CapnProto) \ No newline at end of file
+# Disabled for now, see #5630 and #5635
+# vcpkg_test_cmake(PACKAGE_NAME CapnProto) \ No newline at end of file