From 98793f7a75a2b44b7e6ce5880ca6457e36d20093 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sun, 9 Apr 2023 10:15:30 -0400 Subject: [PATCH] ci + Windows failure fixed by https://codereview.qt-project.org/c/qt/qtbase/+/468903 https://bugreports.qt.io/browse/QTBUG-112204 --- CMakeLists.txt | 8 +++++--- cmake/templates/Config.cmake.in | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92588ff..568ad62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,10 +67,12 @@ option( OFF ) -if(NOT QTK_DEBUG) - set(CMAKE_BUILD_TYPE Release) -else() +if(QTK_DEBUG OR CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]") + set(QTK_DEBUG ON) set(CMAKE_BUILD_TYPE Debug) +else() + set(QTK_DEBUG OFF) + set(CMAKE_BUILD_TYPE Release) endif() # This should be set to your Qt6 installation directory. diff --git a/cmake/templates/Config.cmake.in b/cmake/templates/Config.cmake.in index d1383f2..cd8a459 100644 --- a/cmake/templates/Config.cmake.in +++ b/cmake/templates/Config.cmake.in @@ -6,4 +6,8 @@ set_and_check(QTK_EXECUTABLE "${PACKAGE_PREFIX_DIR}/bin/qtk_gui") set_and_check(QTK_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include") set_and_check(QTK_LIBRARIES "${PACKAGE_PREFIX_DIR}/lib") +set_and_check(Qtk_EXECUTABLE "${PACKAGE_PREFIX_DIR}/bin/qtk_gui") +set_and_check(Qtk_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include") +set_and_check(Qtk_LIBRARIES "${PACKAGE_PREFIX_DIR}/lib") + check_required_components(Qtk)