Skip to content

Commit 974f0bb

Browse files
committed
COMP: Qt5: Fix buildsystem regression ensuring QT_LIBRARIES is set (part 2)
Checking if the Qt5::<lib> target is valid is not possible because find_package calls has not been done yet. git-svn-id: http://svn.slicer.org/Slicer4/trunk@26952 3bd1e089-480b-0410-8dfb-8563597acbee
1 parent 5b5f75b commit 974f0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ list(APPEND Slicer_REQUIRED_QT_MODULES ${Slicer_ADDITIONAL_REQUIRED_QT_MODULES})
603603
if(Slicer_REQUIRED_QT_VERSION VERSION_GREATER "4.9")
604604
set(QT_LIBRARIES)
605605
foreach(lib IN LISTS Slicer_REQUIRED_QT_MODULES)
606-
if(NOT TARGET Qt5::${lib})
606+
if(lib MATCHES "^(LinguistTools)$")
607607
continue()
608608
endif()
609609
list(APPEND QT_LIBRARIES Qt5::${lib})

0 commit comments

Comments
 (0)