Commit ccaa637d authored by Patrick José Pereira's avatar Patrick José Pereira Committed by Daniel Agar

cmake: Include Qt5QGConfiguration before QT_VERSION variable usage

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 1c930022
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment