summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2019-05-10 10:57:50 -0400
committerAdriaan de Groot <groot@kde.org>2019-05-10 10:57:50 -0400
commit81499b22a1815ba1d38daa8d4064ae37b6940e4f (patch)
treec78161ff8f8b61a2d4a9399e6e8f39410e6f3a31
parent69f05bd34a185c3b7f082bb26a83418812a5c63f (diff)
[libcalamares] Fix build of tests
- Link Qt::Xml publicly because the tests will need it as well.
-rw-r--r--src/libcalamares/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcalamares/CMakeLists.txt b/src/libcalamares/CMakeLists.txt
index 585ab7b6b..ad1c7f336 100644
--- a/src/libcalamares/CMakeLists.txt
+++ b/src/libcalamares/CMakeLists.txt
@@ -14,6 +14,7 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/../calamares/CalamaresVersion.h.in
${CMAKE_CURRENT_BINARY_DIR}/CalamaresVersion.h )
set( OPTIONAL_PRIVATE_LIBRARIES "" )
+set( OPTIONAL_PUBLIC_LIBRARIES "" )
set( libSources
CppJob.cpp
@@ -92,7 +93,7 @@ endif()
find_package(Qt5 COMPONENTS Xml)
if( Qt5Xml_FOUND )
list( APPEND libSources geoip/GeoIPXML.cpp )
- list( APPEND OPTIONAL_PRIVATE_LIBRARIES Qt5::Network Qt5::Xml )
+ list( APPEND OPTIONAL_PUBLIC_LIBRARIES Qt5::Network Qt5::Xml )
endif()
### LIBRARY
@@ -112,6 +113,7 @@ target_link_libraries( calamares
LINK_PUBLIC
${YAMLCPP_LIBRARY}
Qt5::Core
+ ${OPTIONAL_PUBLIC_LIBRARIES}
)
install( TARGETS calamares