mirror of
https://github.com/hyprwm/hyprland-qt-support.git
synced 2025-05-12 13:10:35 +01:00
cmake: include GNUInstallDirs after project() (#1)
Fixes the following warning: ``` CMake Warning (dev) at /usr/share/cmake/Modules/GNUInstallDirs.cmake:253 (message): Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target architecture is known. Please enable at least one language before including GNUInstallDirs. ```
This commit is contained in:
parent
0ecf224f21
commit
b4e829d8bf
1 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,11 @@
|
||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
|
# Get version
|
||||||
|
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||||
|
string(STRIP ${VER_RAW} VER)
|
||||||
|
|
||||||
|
project(hyprland-qt-support VERSION ${VER} LANGUAGES CXX)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
@ -8,12 +14,6 @@ include(cmake/install-qml-module.cmake)
|
||||||
|
|
||||||
option(BUILD_TESTER "Build style tester" OFF)
|
option(BUILD_TESTER "Build style tester" OFF)
|
||||||
|
|
||||||
# Get version
|
|
||||||
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
|
||||||
string(STRIP ${VER_RAW} VER)
|
|
||||||
|
|
||||||
project(hyprland-qt-support VERSION ${VER} LANGUAGES CXX)
|
|
||||||
|
|
||||||
find_package(Qt6 6.6 REQUIRED COMPONENTS Qml Quick QuickControls2)
|
find_package(Qt6 6.6 REQUIRED COMPONENTS Qml Quick QuickControls2)
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue