Change include order to prevent warning from GNUInstallDirs (#2132)

CMake >= 3.17 warns that GNUInstallDirs might not work correctly if
included before some target details are known.
closes #2122
This commit is contained in:
karliss 2020-04-08 16:45:13 +03:00 committed by GitHub
parent f789337f45
commit 80c2128039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@ endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(DisallowInSource)
include(Utils)
include(CutterInstallDirs)
set(CUTTER_PYTHON_MIN 3.5)
@ -54,6 +53,8 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Gui Svg Network)
include(CutterInstallDirs)
if(CUTTER_USE_BUNDLED_RADARE2)
include(BundledRadare2)
set(RADARE2_TARGET Radare2)