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.
This commit is contained in:
Chris Hennes
2024-04-24 21:58:37 -05:00
committed by Chris Hennes
parent e3c17ff991
commit 5766505f20

View File

@@ -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)