File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,8 @@ add_subdirectory(libs/libmodplug EXCLUDE_FROM_ALL)
9191add_subdirectory (libs/libopus EXCLUDE_FROM_ALL )
9292add_subdirectory (libs/libopusfile EXCLUDE_FROM_ALL )
9393
94- if (MSVC OR APPLE )
95- target_compile_definitions (FLAC PRIVATE "PACKAGE_VERSION=\" 1.5.0\" " )
96- target_compile_definitions (FLAC PRIVATE "FLAC__HAS_OGG=1" )
97- target_compile_definitions (FLAC PRIVATE "HAVE_LROUND=1" )
94+ if (MSVC )
9895 target_compile_definitions (FLAC PRIVATE "HAVE_FSEEKO=1" )
99- target_compile_definitions (FLAC PRIVATE "HAVE_STDINT_H=1" )
10096endif ()
10197
10298if (UNIX )
@@ -105,7 +101,9 @@ if(UNIX)
105101 target_compile_options (modplug PRIVATE -Wno-deprecated-declarations -Wno-unused-result -Wno-address)
106102 target_compile_options (monkeyaudio PRIVATE -Wno-deprecated-declarations)
107103 target_compile_options (opus PRIVATE -Wno-unused-but-set-variable )
108- target_compile_options (opusfile PRIVATE -Wno-maybe-uninitialized)
104+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
105+ target_compile_options (opusfile PRIVATE -Wno-maybe-uninitialized)
106+ endif ()
109107 target_link_libraries (portamp
110108 dl
111109 pthread
You can’t perform that action at this time.
0 commit comments