From 5766505f20043cffe44a591f364e543326ccf5b1 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Wed, 24 Apr 2024 21:58:37 -0500 Subject: [PATCH] Tests: Ensure MSVC has M_PI Somewhere in the test suite GTest is including cmath (or something related) and not declaring this, so later includes of it by the tests are being ignored. --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 355013a25b..eb9d9cc7bb 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -29,7 +29,7 @@ if(MSVC) endif() if(WIN32) - add_definitions(-DCOIN_DLL) + add_definitions(-DCOIN_DLL -D_USE_MATH_DEFINES) endif(WIN32) if(NOT BUILD_DYNAMIC_LINK_PYTHON)