mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[cppmicroservices] Remove /WX option (#34344)
This commit is contained in:
parent
b7f94044d0
commit
545e152cd4
@ -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
|
||||
|
13
ports/cppmicroservices/remove-wx.patch
Normal file
13
ports/cppmicroservices/remove-wx.patch
Normal 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.
|
@ -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",
|
||||
{
|
||||
|
@ -1854,7 +1854,7 @@
|
||||
},
|
||||
"cppmicroservices": {
|
||||
"baseline": "3.7.6",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"cpprestsdk": {
|
||||
"baseline": "2.10.18",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b438280ccc1012bda6457141a3dea8071711ffb9",
|
||||
"version": "3.7.6",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "3399e4ad64f4b4c0d32f4b5df723384a1bd98dbe",
|
||||
"version": "3.7.6",
|
||||
|
Loading…
x
Reference in New Issue
Block a user