mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-07 07:30:02 +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…
x
Reference in New Issue
Block a user