[cppmicroservices] Remove /WX option (#34344)

This commit is contained in:
Cheney Wang 2023-10-10 06:37:03 +08:00 committed by GitHub
parent b7f94044d0
commit 545e152cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 2 deletions

View File

@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
werror.patch
fix_strnicmp.patch
remove-wx.patch
)
#nowide download
@ -36,7 +37,7 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup()
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
# CppMicroServices uses a custom resource compiler to compile resources
# the zipped resources are then appended to the target which cause the linker to crash

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2bec34f..801d049 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -511,7 +511,7 @@ if(MSVC)
set(US_ENABLE_ASAN OFF)
endif()
- set(US_CXX_FLAGS "/MP /WX /D${msvc_version_define} ${US_CXX_FLAGS}")
+ set(US_CXX_FLAGS "/MP /D${msvc_version_define} ${US_CXX_FLAGS}")
else()
# If not cross-compiling, turn on Stack Smashing Protection.

View File

@ -1,8 +1,10 @@
{
"name": "cppmicroservices",
"version": "3.7.6",
"port-version": 1,
"description": "An OSGi-like C++ dynamic module system and service registry",
"homepage": "https://github.com/CppMicroServices/CppMicroServices",
"license": "Apache-2.0",
"dependencies": [
"gtest",
{

View File

@ -1854,7 +1854,7 @@
},
"cppmicroservices": {
"baseline": "3.7.6",
"port-version": 0
"port-version": 1
},
"cpprestsdk": {
"baseline": "2.10.18",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b438280ccc1012bda6457141a3dea8071711ffb9",
"version": "3.7.6",
"port-version": 1
},
{
"git-tree": "3399e4ad64f4b4c0d32f4b5df723384a1bd98dbe",
"version": "3.7.6",