mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[joltphysics] Disable treats all compiler warnings as errors (#29271)
* [joltphysics] Disable warning C5266 * update version * apply suggestion * update version
This commit is contained in:
parent
b4f29c5445
commit
0a8ac2f124
13
ports/joltphysics/disable-warningC5266.patch
Normal file
13
ports/joltphysics/disable-warningC5266.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/Build/CMakeLists.txt b/Build/CMakeLists.txt
|
||||||
|
index 27c4c64..78f3947 100644
|
||||||
|
--- a/Build/CMakeLists.txt
|
||||||
|
+++ b/Build/CMakeLists.txt
|
||||||
|
@@ -53,7 +53,7 @@ if (("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR "${CMAKE_SYSTEM_NAME}" STREQUA
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Set general compiler flags
|
||||||
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /Zc:__cplusplus /Gm- /Wall /WX /MP /nologo /diagnostics:classic /FC /fp:except- /Zc:inline /Zi")
|
||||||
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /Zc:__cplusplus /Gm- /Wall /WX- /MP /nologo /diagnostics:classic /FC /fp:except- /Zc:inline /Zi")
|
||||||
|
|
||||||
|
# Remove any existing compiler flag that enables RTTI
|
||||||
|
string(REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
@ -3,9 +3,11 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO jrouwe/JoltPhysics
|
REPO jrouwe/JoltPhysics
|
||||||
REF v2.0.1
|
REF "v${VERSION}"
|
||||||
SHA512 c5848fe7a28de1b34259d3d21e4cd35bec4002eee926445e05d902934c43ab4cafcfa24ceb037c59cc66c3dcea5f3a737546f88c20be594dafe6ce6d1f637abb
|
SHA512 c5848fe7a28de1b34259d3d21e4cd35bec4002eee926445e05d902934c43ab4cafcfa24ceb037c59cc66c3dcea5f3a737546f88c20be594dafe6ce6d1f637abb
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
|
PATCHES
|
||||||
|
disable-warningC5266.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)
|
||||||
@ -43,4 +45,4 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "joltphysics",
|
"name": "joltphysics",
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"port-version": 1,
|
"port-version": 2,
|
||||||
"description": "A multi core friendly rigid body physics and collision detection library suitable for games and VR applications",
|
"description": "A multi core friendly rigid body physics and collision detection library suitable for games and VR applications",
|
||||||
"homepage": "https://github.com/jrouwe/JoltPhysics",
|
"homepage": "https://github.com/jrouwe/JoltPhysics",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -3262,7 +3262,7 @@
|
|||||||
},
|
},
|
||||||
"joltphysics": {
|
"joltphysics": {
|
||||||
"baseline": "2.0.1",
|
"baseline": "2.0.1",
|
||||||
"port-version": 1
|
"port-version": 2
|
||||||
},
|
},
|
||||||
"josuttis-jthread": {
|
"josuttis-jthread": {
|
||||||
"baseline": "2020-07-21",
|
"baseline": "2020-07-21",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "845755ddfb9fa5d6f88c836cffdb1f497e69ad46",
|
||||||
|
"version": "2.0.1",
|
||||||
|
"port-version": 2
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "5e739c5e65a72603e92f5ca31b07a8a78a918166",
|
"git-tree": "5e739c5e65a72603e92f5ca31b07a8a78a918166",
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user