From ca9aece201dd581c0576fe5448162686081261ff Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Tue, 14 Feb 2023 15:22:16 +0800 Subject: [PATCH] improved compiler.cmake --- compiler.cmake | 3 ++- math.cmake | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler.cmake b/compiler.cmake index 848670d..8c13cea 100644 --- a/compiler.cmake +++ b/compiler.cmake @@ -8,8 +8,9 @@ IF(WIN32) SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++2a -O2 -fchar8_t") add_definitions(-D_WIN32_WINNT=0x0601) + endif() - else(MSVC) + if(MSVC) OPTION(MSVC_USE_DLL "use MSVC DLL" ON) diff --git a/math.cmake b/math.cmake index c272fbb..37caa36 100644 --- a/math.cmake +++ b/math.cmake @@ -1,4 +1,5 @@ find_package(glm CONFIG REQUIRED) + add_definitions(-DGLM_FORCE_RADIANS) add_definitions(-DGLM_FORCE_DEPTH_ZERO_TO_ONE) add_definitions(-DGLM_ENABLE_EXPERIMENTAL)