-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
Update glm to v0.9.9.8
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1,15 +1,40 @@ | ||
-cmake_minimum_required(VERSION 3.2 FATAL_ERROR) | ||
+cmake_minimum_required(VERSION 3.20 FATAL_ERROR) | ||
cmake_policy(VERSION 3.2) | ||
|
||
-set(GLM_VERSION "0.9.9") | ||
+file(READ "glm/detail/setup.hpp" GLM_SETUP_FILE) | ||
+string(REGEX MATCH "#define[ ]+GLM_VERSION_MAJOR[ ]+([0-9]+)" _ ${GLM_SETUP_FILE}) | ||
+set(GLM_VERSION_MAJOR "${CMAKE_MATCH_1}") | ||
+string(REGEX MATCH "#define[ ]+GLM_VERSION_MINOR[ ]+([0-9]+)" _ ${GLM_SETUP_FILE}) | ||
+set(GLM_VERSION_MINOR "${CMAKE_MATCH_1}") | ||
+string(REGEX MATCH "#define[ ]+GLM_VERSION_PATCH[ ]+([0-9]+)" _ ${GLM_SETUP_FILE}) | ||
+set(GLM_VERSION_PATCH "${CMAKE_MATCH_1}") | ||
+string(REGEX MATCH "#define[ ]+GLM_VERSION_REVISION[ ]+([0-9]+)" _ ${GLM_SETUP_FILE}) | ||
+set(GLM_VERSION_REVISION "${CMAKE_MATCH_1}") | ||
+ | ||
+set(GLM_VERSION ${GLM_VERSION_MAJOR}.${GLM_VERSION_MINOR}.${GLM_VERSION_PATCH}.${GLM_VERSION_REVISION}) | ||
project(glm VERSION ${GLM_VERSION} LANGUAGES CXX) | ||
enable_testing() | ||
|
||
+include(GNUInstallDirs) | ||
+ | ||
add_subdirectory(glm) | ||
add_library(glm::glm ALIAS glm) | ||
|
||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
+install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PATTERN "CMakeLists.txt" EXCLUDE) | ||
+install(EXPORT glm FILE glmConfig.cmake DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/glm NAMESPACE glm::) | ||
+include(CMakePackageConfigHelpers) | ||
+write_basic_package_version_file("glmConfigVersion.cmake" COMPATIBILITY AnyNewerVersion ARCH_INDEPENDENT) | ||
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/glm) | ||
+ | ||
+cmake_path(APPEND PKGCONFIG_INCLUDEDIR "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}") | ||
+configure_file("cmake/glm.pc.in" "glm.pc" @ONLY) | ||
+install( | ||
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/glm.pc" | ||
+ DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig" | ||
+) | ||
+ | ||
add_subdirectory(test) | ||
|
||
endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) | ||
--- /dev/null | ||
+++ b/cmake/glm.pc.in | ||
@@ -0,0 +1,8 @@ | ||
+prefix=@CMAKE_INSTALL_PREFIX@ | ||
+includedir=@PKGCONFIG_INCLUDEDIR@ | ||
+ | ||
+Name: GLM | ||
+Description: OpenGL Mathematics | ||
+URL: https://glm.g-truc.net | ||
+Version: @GLM_VERSION@ | ||
+Cflags: -I${includedir} | ||
--- a/glm/CMakeLists.txt | ||
+++ b/glm/CMakeLists.txt | ||
@@ -43,7 +43,13 @@ source_group("SIMD Files" FILES ${SIMD_I | ||
source_group("SIMD Files" FILES ${SIMD_HEADER}) | ||
|
||
add_library(glm INTERFACE) | ||
-target_include_directories(glm INTERFACE ../) | ||
+ | ||
+target_include_directories(glm INTERFACE | ||
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}> | ||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | ||
+) | ||
+ | ||
+install(TARGETS glm EXPORT glm) | ||
|
||
if(BUILD_STATIC_LIBS) | ||
add_library(glm_static STATIC ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
From 3211722dd24bd3a1e10addb8e6df8522b73dd7f5 Mon Sep 17 00:00:00 2001 | ||
From: Liam Wang <[email protected]> | ||
Date: Wed, 29 Jun 2022 21:01:58 -0400 | ||
Subject: [PATCH] Disable warnings as errors | ||
|
||
--- | ||
CMakeLists.txt | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 10bb1af..2d31596 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -211,6 +211,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt | ||
index e7f85f19f..e67a448f2 100644 | ||
--- a/test/CMakeLists.txt | ||
+++ b/test/CMakeLists.txt | ||
@@ -197,7 +197,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
message("GLM: Clang - ${CMAKE_CXX_COMPILER_ID} compiler") | ||
endif() | ||
|
||
add_compile_options(-Werror -Weverything) | ||
+ add_compile_options(-Wno-error=implicit-int-conversion -Wno-error=implicit-int-float-conversion -Wno-error=unused-but-set-variable) | ||
- add_compile_options(-Werror -Weverything) | ||
+ #add_compile_options(-Werror -Weverything) | ||
add_compile_options(-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c++11-long-long -Wno-padded -Wno-gnu-anonymous-struct -Wno-nested-anon-types) | ||
add_compile_options(-Wno-undefined-reinterpret-cast -Wno-sign-conversion -Wno-unused-variable -Wno-missing-prototypes -Wno-unreachable-code -Wno-missing-variable-declarations -Wno-sign-compare -Wno-global-constructors -Wno-unused-macros -Wno-format-nonliteral) | ||
|
||
-- | ||
2.32.1 (Apple Git-133) | ||
|
04610c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This is the friendly automated conda-forge-webservice.
I updated the Github team because of this commit.
You should get push access to this feedstock and CI services.
Your package won't be available for installation locally until it is built
and synced to the anaconda.org CDN (takes 1-2 hours after the build finishes).
Feel free to join the community chat room.
NOTE: Please make sure to not push to the repository directly.
Use branches in your fork for any changes and send a PR.
More details on this are here.