1
0
mirror of https://github.com/RPCS3/soundtouch.git synced 2024-11-09 20:33:03 +01:00

CMake: set optimization options for MSVC as well as GCC & Clang

This commit is contained in:
Be 2021-08-18 12:24:18 -05:00
parent f974b28682
commit eb6d970970
No known key found for this signature in database
GPG Key ID: F4D83691462F656E

View File

@ -47,7 +47,12 @@ if(WIN32 AND BUILD_SHARED_LIBS)
endif()
endif()
target_compile_options(SoundTouch PRIVATE -Ofast)
if(MSVC)
target_compile_definitions(SoundTouch PRIVATE /O2 /fp:fast)
else()
target_compile_options(SoundTouch PRIVATE -Ofast)
endif()
target_compile_definitions(SoundTouch PRIVATE CMAKE)
option(INTEGER_SAMPLES "Use integers instead of floats for samples" OFF)