Skip to content

Commit 8dff030

Browse files
committed
Be explicit with Qt link libraries
For the analysis tests, instead of linking with all the found QT_LIBRARIES, pick only the ones that are needed.
1 parent 984fe0e commit 8dff030

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/src/analysis/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ MACRO (ADD_QGIS_TEST testname testsrc)
5959
ADD_CUSTOM_TARGET(qgis_${testname}moc ALL DEPENDS ${qgis_${testname}_MOC_SRCS})
6060
ADD_EXECUTABLE(qgis_${testname} ${qgis_${testname}_SRCS})
6161
ADD_DEPENDENCIES(qgis_${testname} qgis_${testname}moc)
62-
TARGET_LINK_LIBRARIES(qgis_${testname} ${QT_LIBRARIES} qgis_analysis)
62+
TARGET_LINK_LIBRARIES(qgis_${testname}
63+
${QT_QTCORE_LIBRARY}
64+
${QT_QTTEST_LIBRARY}
65+
qgis_analysis)
6366
ADD_TEST(qgis_${testname} ${CMAKE_CURRENT_BINARY_DIR}/../../../output/bin/qgis_${testname})
6467
#SET_TARGET_PROPERTIES(qgis_${testname} PROPERTIES
6568
# INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${QGIS_LIB_DIR}

0 commit comments

Comments
 (0)