Skip to content

Commit

Permalink
Fix linking against kColorPicker (#328)
Browse files Browse the repository at this point in the history
nicolasfella authored Jan 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 39b2f17 commit 0748a1a
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ target_include_directories(kImageAnnotator
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

target_link_libraries(kImageAnnotator PUBLIC Qt${QT_MAJOR_VERSION}::Widgets Qt${QT_MAJOR_VERSION}::Svg PRIVATE kColorPicker-Qt${QT_MAJOR_VERSION})
target_link_libraries(kImageAnnotator PUBLIC Qt${QT_MAJOR_VERSION}::Widgets Qt${QT_MAJOR_VERSION}::Svg PRIVATE kColorPicker::kColorPicker-Qt${QT_MAJOR_VERSION})

if (UNIX AND NOT APPLE)
# X11::X11 imported target only available with sufficiently new CMake
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ add_library(KIMAGEANNOTATOR_STATIC STATIC ${KIMAGEANNOTATOR_SRCS})
target_link_libraries(KIMAGEANNOTATOR_STATIC
Qt${QT_MAJOR_VERSION}::Widgets
kImageAnnotator::kImageAnnotator
kColorPicker::kColorPicker
kColorPicker::kColorPicker-Qt${QT_MAJOR_VERSION}
Qt${QT_MAJOR_VERSION}::Svg)

if (UNIX AND NOT APPLE)

0 comments on commit 0748a1a

Please sign in to comment.