Set _USE_MATH_DEFINES on Windows

All compilers need this in standards-compliant mode.
This commit is contained in:
Simon Richter 2019-06-27 17:47:58 +02:00 committed by Wayne Stambaugh
parent 8b492c3c45
commit cf4393091a
1 changed files with 4 additions and 0 deletions

View File

@ -245,6 +245,10 @@ if( WIN32 )
# define UNICODE and_UNICODE definition on Windows. KiCad uses unicode.
# Both definitions are required
add_definitions(-DUNICODE -D_UNICODE)
# In fully standards-compliant mode, M_PI et al. are defined only if
# _USE_MATH_DEFINES is set.
add_definitions( -D_USE_MATH_DEFINES )
endif()