From bd93d4251bb0cc220b33c100590d26d074f9fa0c Mon Sep 17 00:00:00 2001 From: "k.koide" Date: Mon, 15 Apr 2024 14:01:05 +0900 Subject: [PATCH] _USE_MATH_DEFINES --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd948b..1d5c910 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,6 +82,10 @@ if(BUILD_WITH_MARCH_NATIVE) add_compile_options(-march=native) endif() +if(WIN32) + add_compile_definitions(_USE_MATH_DEFINES) +endif() + ############## ## Coverage ## ##############