Commit 3eb989c7 authored by Till Adam's avatar Till Adam
Browse files

Don't disable deprecated declaration warnings with MSVC

The -Wno-deprecated-declarations flag doesn't work with MSVC, so
let's not try to set it on Windows.
parent 060dc0d3
...@@ -11,6 +11,8 @@ set(kgapitest_SRCS ...@@ -11,6 +11,8 @@ set(kgapitest_SRCS
testutils.cpp testutils.cpp
) )
if (NOT WIN32)
# Silence deprecation warnings for deprecated APIs tests. # Silence deprecation warnings for deprecated APIs tests.
set_source_files_properties( set_source_files_properties(
drive/teamdrivecreatejobtest.cpp drive/teamdrivecreatejobtest.cpp
...@@ -19,6 +21,7 @@ set_source_files_properties( ...@@ -19,6 +21,7 @@ set_source_files_properties(
drive/teamdrivemodifyjobtest.cpp drive/teamdrivemodifyjobtest.cpp
PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations
) )
endif()
add_library(kgapitest STATIC ${kgapitest_SRCS}) add_library(kgapitest STATIC ${kgapitest_SRCS})
target_link_libraries(kgapitest Qt5::Core Qt5::Network Qt5::Test KPimGAPICore) target_link_libraries(kgapitest Qt5::Core Qt5::Network Qt5::Test KPimGAPICore)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment