diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2018-09-24 18:48:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-24 18:48:31 -0700 |
| commit | 61be650835c39ad3b04b0f7f4d5e781fb970d2dd (patch) | |
| tree | 46493680075f62dab7e5dcf4ad793fc27aa46479 | |
| parent | 41c09828339f7e3785fdac5330457b5bed397c95 (diff) | |
| parent | d23c403e2d6fff183edd47d0c35e0282e4691abc (diff) | |
| download | vcpkg-61be650835c39ad3b04b0f7f4d5e781fb970d2dd.tar.gz vcpkg-61be650835c39ad3b04b0f7f4d5e781fb970d2dd.zip | |
Merge pull request #4283 from jasjuang/glm
[glm] update to 0.9.9.2
| -rw-r--r-- | ports/glm/CONTROL | 2 | ||||
| -rw-r--r-- | ports/glm/disable_warnings_as_error.patch | 13 | ||||
| -rw-r--r-- | ports/glm/ignore-warning-C4201.patch | 128 | ||||
| -rw-r--r-- | ports/glm/portfile.cmake | 6 |
4 files changed, 17 insertions, 132 deletions
diff --git a/ports/glm/CONTROL b/ports/glm/CONTROL index 7dbcec7d4..c7c099c72 100644 --- a/ports/glm/CONTROL +++ b/ports/glm/CONTROL @@ -1,3 +1,3 @@ Source: glm -Version: 0.9.9.0 +Version: 0.9.9.2 Description: OpenGL Mathematics (GLM) https://glm.g-truc.net diff --git a/ports/glm/disable_warnings_as_error.patch b/ports/glm/disable_warnings_as_error.patch new file mode 100644 index 000000000..f87616b1e --- /dev/null +++ b/ports/glm/disable_warnings_as_error.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 756673a3..5fbc8906 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -216,7 +216,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") + message("GLM: Visual C++ - ${CMAKE_CXX_COMPILER_ID} compiler") + endif() + +- add_compile_options(/W4 /WX) ++ add_compile_options(/W4) + add_compile_options(/wd4309 /wd4324 /wd4389 /wd4127 /wd4267 /wd4146 /wd4201 /wd4464 /wd4514 /wd4701 /wd4820 /wd4365) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) + endif() diff --git a/ports/glm/ignore-warning-C4201.patch b/ports/glm/ignore-warning-C4201.patch deleted file mode 100644 index b94b123db..000000000 --- a/ports/glm/ignore-warning-C4201.patch +++ /dev/null @@ -1,128 +0,0 @@ -diff --git a/glm/detail/type_vec1.hpp b/glm/detail/type_vec1.hpp -index f5c7f017..69c7274a 100644 ---- a/glm/detail/type_vec1.hpp -+++ b/glm/detail/type_vec1.hpp -@@ -39,6 +39,10 @@ namespace glm - # pragma clang diagnostic push - # pragma clang diagnostic ignored "-Wgnu-anonymous-struct" - # pragma clang diagnostic ignored "-Wnested-anon-types" -+# endif -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(push) -+# pragma warning(disable: 4201) - # endif - - union -@@ -60,6 +64,9 @@ namespace glm - # endif//GLM_SWIZZLE*/ - }; - -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(pop) -+# endif - # if GLM_COMPILER & GLM_COMPILER_CLANG - # pragma clang diagnostic pop - # endif -diff --git a/glm/detail/type_vec2.hpp b/glm/detail/type_vec2.hpp -index a9af32e3..b8b8f32e 100644 ---- a/glm/detail/type_vec2.hpp -+++ b/glm/detail/type_vec2.hpp -@@ -38,6 +38,10 @@ namespace glm - # pragma clang diagnostic push - # pragma clang diagnostic ignored "-Wgnu-anonymous-struct" - # pragma clang diagnostic ignored "-Wnested-anon-types" -+# endif -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(push) -+# pragma warning(disable: 4201) - # endif - - union -@@ -60,6 +64,9 @@ namespace glm - - }; - -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(pop) -+# endif - # if GLM_COMPILER & GLM_COMPILER_CLANG - # pragma clang diagnostic pop - # endif -diff --git a/glm/detail/type_vec3.hpp b/glm/detail/type_vec3.hpp -index f85f0a5c..28e6c6ed 100644 ---- a/glm/detail/type_vec3.hpp -+++ b/glm/detail/type_vec3.hpp -@@ -38,6 +38,10 @@ namespace glm - # pragma clang diagnostic push - # pragma clang diagnostic ignored "-Wgnu-anonymous-struct" - # pragma clang diagnostic ignored "-Wnested-anon-types" -+# endif -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(push) -+# pragma warning(disable: 4201) - # endif - - union -@@ -59,6 +63,9 @@ namespace glm - # endif//GLM_SWIZZLE - }; - -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(pop) -+# endif - # if GLM_COMPILER & GLM_COMPILER_CLANG - # pragma clang diagnostic pop - # endif -diff --git a/glm/detail/type_vec4.hpp b/glm/detail/type_vec4.hpp -index 5e89b744..0a16bc2c 100644 ---- a/glm/detail/type_vec4.hpp -+++ b/glm/detail/type_vec4.hpp -@@ -38,6 +38,10 @@ namespace glm - # pragma clang diagnostic push - # pragma clang diagnostic ignored "-Wgnu-anonymous-struct" - # pragma clang diagnostic ignored "-Wnested-anon-types" -+# endif -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(push) -+# pragma warning(disable: 4201) - # endif - - union -@@ -61,6 +65,9 @@ namespace glm - # endif//GLM_SWIZZLE - }; - -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(pop) -+# endif - # if GLM_COMPILER & GLM_COMPILER_CLANG - # pragma clang diagnostic pop - # endif -diff --git a/glm/gtc/quaternion.hpp b/glm/gtc/quaternion.hpp -index 8af1c8bf..ff8c4aa6 100644 ---- a/glm/gtc/quaternion.hpp -+++ b/glm/gtc/quaternion.hpp -@@ -49,6 +49,10 @@ namespace glm - # pragma clang diagnostic push - # pragma clang diagnostic ignored "-Wgnu-anonymous-struct" - # pragma clang diagnostic ignored "-Wnested-anon-types" -+# endif -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(push) -+# pragma warning(disable: 4201) - # endif - - union -@@ -57,6 +61,9 @@ namespace glm - typename detail::storage<T, sizeof(T) * 4, detail::is_aligned<P>::value>::type data; - }; - -+# if GLM_COMPILER & GLM_COMPILER_VC -+# pragma warning(pop) -+# endif - # if GLM_COMPILER & GLM_COMPILER_CLANG - # pragma clang diagnostic pop - # endif --- -2.15.1.windows.2 - diff --git a/ports/glm/portfile.cmake b/ports/glm/portfile.cmake index b975cc370..90f7875fb 100644 --- a/ports/glm/portfile.cmake +++ b/ports/glm/portfile.cmake @@ -3,14 +3,14 @@ include(vcpkg_common_functions) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO g-truc/glm - REF 0.9.9.0 - SHA512 b7a6996cb98bc334130c33a339275b50ea28d8dfce300f3d14ac52edf0b5c38bf216d318f411e898edef428876c0b2d1f6a6e951f160f31425fe0852ad150421 + REF 0.9.9.2 + SHA512 80a5fbeaaea5f1034cd6f8ad3f4daf8b5fa8d9410ccce15ced20f37e24c0f6083332fde82b1fa7357399b3e37c1a31dd3a14f257b7847a5f1ddefa627b50351a HEAD_REF master ) vcpkg_apply_patches( SOURCE_PATH ${SOURCE_PATH} - PATCHES "${CMAKE_CURRENT_LIST_DIR}/ignore-warning-C4201.patch" + PATCHES "${CMAKE_CURRENT_LIST_DIR}/disable_warnings_as_error.patch" ) vcpkg_configure_cmake( |
