cglm: fix build flags

This commit is contained in:
Đoàn Trần Công Danh 2021-03-26 09:01:12 +07:00
parent 03adf7c630
commit 13a02baea7
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: cglm-0.7.6/CMakeLists.txt
===================================================================
--- cglm-0.7.6.orig/CMakeLists.txt
+++ cglm-0.7.6/CMakeLists.txt
@@ -25,7 +25,7 @@ if(MSVC)
add_definitions(-DNDEBUG -D_WINDOWS -D_USRDLL -DCGLM_EXPORTS -DCGLM_DLL)
add_compile_options(/W3 /Ox /Gy /Oi /TC)
else()
- add_compile_options(-Wall -Werror -O3)
+ add_compile_options(-Wall)
endif()
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)

View File

@ -9,6 +9,7 @@ license="MIT"
homepage="https://github.com/recp/cglm"
distfiles="https://github.com/recp/cglm/archive/v${version}.tar.gz"
checksum=29ff8af4edc03697e36d3e6f99a80b884a80ee09d46055ce45765e5d6b2456d9
patch_args=-Np1
post_install() {
vlicense LICENSE