Commit 3557b70d authored by David Faure's avatar David Faure

Don't export internal classes when not building autotests.

Summary: surely this is the reason for having a different export macro

Test Plan:
with BUILD_TESTING=FALSE, the generated header just says
#define AKONADI_TESTS_EXPORT, and everything still builds.

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D4694
parent 2e658b98
......@@ -79,7 +79,9 @@ set_package_properties(Boost PROPERTIES
add_definitions(-DQT_STRICT_ITERATORS)
set(AKONADI_TESTS_EXPORT AKONADICORE_EXPORT)
if(BUILD_TESTING)
set(AKONADI_TESTS_EXPORT AKONADICORE_EXPORT)
endif()
configure_file(akonaditests_export.h.in "${CMAKE_CURRENT_BINARY_DIR}/akonaditests_export.h")
# Make sure the KF5Akonadi_DATA_DIR is absolute before passing it to KF5AkonadiConfig.cmake.in
......
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