Browse Source

cmake: Include Qt5QGConfiguration before QT_VERSION variable usage

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 5 years ago committed by Daniel Agar
parent
commit
ccaa637da9
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

@ -26,6 +26,8 @@ endif() @@ -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() @@ -102,7 +104,6 @@ endif()
#=============================================================================
# Qt5
#
include(Qt5QGCConfiguration)
find_package(Qt5 ${QT_VERSION}
COMPONENTS
Bluetooth

Loading…
Cancel
Save