Skip to content

Commit f101650

Browse files
committed
fix compile error in ubuntu 2004
1 parent 8cadf77 commit f101650

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/modeltests/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ ecm_add_test(
6363
Qt::Test
6464
KF${QT_MAJOR_VERSION}::KIOCore
6565
KF${QT_MAJOR_VERSION}::ThreadWeaver
66-
KF${QT_MAJOR_VERSION}::Archive
6766
KF${QT_MAJOR_VERSION}::WindowSystem
6867
models
6968
TEST_NAME
7069
tst_callgraphgenerator
7170
)
71+
if(${KFArchive_FOUND})
72+
target_link_libraries(tst_callgraphgenerator KF${QT_MAJOR_VERSION}::Archive)
73+
endif()
7274

7375
set_target_properties(
7476
tst_callgraphgenerator PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${KDE_INSTALL_BINDIR}"

0 commit comments

Comments
 (0)