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:
parent
f974b28682
commit
eb6d970970
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user