From ccaa637da9a9cf77fb8787d79ab8c7f02126ca80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 16 Jan 2020 15:21:18 -0300 Subject: [PATCH] cmake: Include Qt5QGConfiguration before QT_VERSION variable usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cdebc9c8..1e0f792d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,8 @@ endif() # Add folder where are supportive functions list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) +# Configure Qt5 to get necessary variables +include(Qt5QGCConfiguration) message(STATUS "Build Type: ${CMAKE_BUILD_TYPE}") message(STATUS "Qt version: ${QT_VERSION}") message(STATUS "Qt spec: ${QT_MKSPEC}") @@ -102,7 +104,6 @@ endif() #============================================================================= # Qt5 # -include(Qt5QGCConfiguration) find_package(Qt5 ${QT_VERSION} COMPONENTS Bluetooth -- 2.22.0