diff --git a/3rdparty/kdsingleapplication/CMakeLists.txt b/3rdparty/kdsingleapplication/CMakeLists.txt index abc6e786b..e2ce7408a 100644 --- a/3rdparty/kdsingleapplication/CMakeLists.txt +++ b/3rdparty/kdsingleapplication/CMakeLists.txt @@ -3,7 +3,9 @@ set(SOURCES KDSingleApplication/src/kdsingleapplication.cpp KDSingleApplication/ set(HEADERS KDSingleApplication/src/kdsingleapplication.h KDSingleApplication/src/kdsingleapplication_localsocket_p.h) qt_wrap_cpp(MOC ${HEADERS}) add_library(kdsingleapplication STATIC ${SOURCES} ${MOC}) -target_compile_options(kdsingleapplication PRIVATE -Wno-missing-declarations) +if(NOT MSVC) + target_compile_options(kdsingleapplication PRIVATE -Wno-missing-declarations) +endif() target_compile_definitions(kdsingleapplication PRIVATE -DKDSINGLEAPPLICATION_STATIC_BUILD) target_include_directories(kdsingleapplication PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_link_libraries(kdsingleapplication PUBLIC Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Network) diff --git a/ext/libstrawberry-tagreader/CMakeLists.txt b/ext/libstrawberry-tagreader/CMakeLists.txt index 8f6b7aecd..790cd2b7f 100644 --- a/ext/libstrawberry-tagreader/CMakeLists.txt +++ b/ext/libstrawberry-tagreader/CMakeLists.txt @@ -21,7 +21,9 @@ endif() add_library(libstrawberry-tagreader STATIC ${PROTO_SOURCES} ${SOURCES}) -target_compile_options(libstrawberry-tagreader PRIVATE -Wno-missing-declarations) +if(NOT MSVC) + target_compile_options(libstrawberry-tagreader PRIVATE -Wno-missing-declarations) +endif() target_include_directories(libstrawberry-tagreader SYSTEM PRIVATE ${GLIB_INCLUDE_DIRS}