cmake: set KDReports_FOUND when KDReports-qt6 detected so LtsPrinting guard behaves correctly
This commit is contained in:
1 parent
398c1fe981
commit
946695c57e
1 file changed
+2
@@ -12,11 +12,13 @@ endif()
|
||||
# If KDReports already provided via variables, use them
|
||||
IF(KDREPORTS_INCLUDE_DIR AND KDREPORTS_KDREPORTS_INCLUDE_DIR AND KDREPORTS_LIBRARY)
|
||||
SET(KDREPORTS_FOUND TRUE)
|
||||
SET(KDReports_FOUND TRUE)
|
||||
ELSE()
|
||||
# Prefer KDReports-qt6 package config if installed under standard prefixes
|
||||
if(EXISTS "${CMAKE_PREFIX_PATH}/lib/cmake/KDReports-qt6" OR EXISTS "/usr/local/lib/cmake/KDReports-qt6")
|
||||
message(STATUS "Found KDReports-qt6 package config in CMAKE_PREFIX_PATH or /usr/local")
|
||||
set(KDREPORTS_FOUND TRUE)
|
||||
set(KDReports_FOUND TRUE)
|
||||
# Best-effort defaults; specific projects will use the imported target below
|
||||
set(KDREPORTS_INCLUDE_DIR "/usr/local/include")
|
||||
set(KDREPORTS_KDREPORTS_INCLUDE_DIR "/usr/local/include")
|
||||
|
||||
Reference in new issue
Block a user