Skip to content

Commit

Permalink
Small fix to cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Nov 14, 2024
1 parent 3d602ee commit 7e0dff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CC_FindQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ macro (cc_find_qt_major)
add_library(Qt::Core ALIAS Qt${CC_TOOLS_QT_MAJOR_QT_VERSION}::Core)
endif ()

if (NOT TARGET Qt::Widgets)
if ((NOT TARGET Qt::Widgets) AND (TARGET Qt${CC_TOOLS_QT_MAJOR_QT_VERSION}::Widgets))
set_target_properties(Qt${CC_TOOLS_QT_MAJOR_QT_VERSION}::Widgets PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(Qt::Widgets ALIAS Qt${CC_TOOLS_QT_MAJOR_QT_VERSION}::Widgets)
endif ()
Expand Down

0 comments on commit 7e0dff4

Please sign in to comment.