Commit 6f124e5e authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Link tests agains shared akonadiprivate

Otherwise we end up linking against both the shared and static variant,
which breaks MSVC
parent cf1bd5a6
Pipeline #160403 passed with stage
in 10 minutes and 47 seconds
......@@ -11,7 +11,7 @@ macro(add_unit_test _source)
endif()
target_link_libraries(${_name}
akonadi_shared
akonadiprivate_static
KF5AkonadiPrivate
Qt${QT_MAJOR_VERSION}::Network
Qt${QT_MAJOR_VERSION}::Widgets
Qt${QT_MAJOR_VERSION}::Test
......
......@@ -125,16 +125,3 @@ install(FILES
compressionstream_p.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/Akonadi/akonadi/private
)
### Private static library used by unit-tests ####
add_library(akonadiprivate_static STATIC ${akonadiprivate_buildsources})
if (WIN32)
add_dependencies(akonadiprivate_static generate_protocol)
update_include_directories(akonadiprivate_static)
endif()
set_target_properties(akonadiprivate_static PROPERTIES
COMPILE_FLAGS -DAKONADIPRIVATE_STATIC_DEFINE
)
target_link_libraries(akonadiprivate_static ${akonadiprivate_LIBS})
Supports Markdown
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