diff --git a/cmake/FindKDReports.cmake b/cmake/FindKDReports.cmake index f12914129..ee522380f 100755 --- a/cmake/FindKDReports.cmake +++ b/cmake/FindKDReports.cmake @@ -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")