mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Fix math constants on Windows, such as M_PI, and min and max
This commit is contained in:
parent
fe8659f435
commit
1f6efefdf6
@ -215,6 +215,8 @@ function( audacity_append_common_compiler_options var )
|
|||||||
$<$<CXX_COMPILER_ID:AppleClang,Clang>:-Werror=return-stack-address>
|
$<$<CXX_COMPILER_ID:AppleClang,Clang>:-Werror=return-stack-address>
|
||||||
# Yes, CMake will change -D to /D as needed for Windows:
|
# Yes, CMake will change -D to /D as needed for Windows:
|
||||||
-DWXINTL_NO_GETTEXT_MACRO
|
-DWXINTL_NO_GETTEXT_MACRO
|
||||||
|
$<$<CXX_COMPILER_ID:MSVC>:-D_USE_MATH_DEFINES>
|
||||||
|
$<$<CXX_COMPILER_ID:MSVC>:-DNOMINMAX>
|
||||||
)
|
)
|
||||||
set( ${var} "${${var}}" PARENT_SCOPE )
|
set( ${var} "${${var}}" PARENT_SCOPE )
|
||||||
endfunction()
|
endfunction()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user