1
0
mirror of https://github.com/RPCS3/soundtouch.git synced 2024-09-19 16:01:37 +02:00

CMake: fix compiler warning about unknown option -fPIC with MSVC

This commit is contained in:
Be 2021-09-07 08:42:26 -05:00
parent 7df5617a4b
commit fd8e4c6835
No known key found for this signature in database
GPG Key ID: F4D83691462F656E

View File

@ -120,8 +120,8 @@ if(SOUNDTOUCH_DLL)
source/SoundTouchDLL/SoundTouchDLL.cpp
source/SoundTouchDLL/SoundTouchDLL.rc
)
target_compile_options(SoundTouch PRIVATE -fPIC)
target_compile_options(SoundTouchDLL PRIVATE -fPIC ${COMPILE_OPTIONS})
set_target_properties(SoundTouch PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
target_compile_options(SoundTouchDLL PRIVATE ${COMPILE_OPTIONS})
set_target_properties(SoundTouchDLL PROPERTIES CXX_VISIBILITY_PRESET hidden)
target_include_directories(SoundTouchDLL PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
target_link_libraries(SoundTouchDLL PRIVATE SoundTouch)