mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 01:05:58 +01:00
CMake: Suppress CMake warning about GNUInstallDirs
This commit is contained in:
parent
51ffd7fa6f
commit
4ae89e1f22
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.27)
|
cmake_minimum_required(VERSION 3.27)
|
||||||
|
|
||||||
include(CheckIncludeFile)
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
|
|
||||||
# Get version
|
# Get version
|
||||||
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||||
string(STRIP ${VER_RAW} VER)
|
string(STRIP ${VER_RAW} VER)
|
||||||
|
@ -12,6 +9,9 @@ project(
|
||||||
DESCRIPTION "A Modern C++ Wayland Compositor"
|
DESCRIPTION "A Modern C++ Wayland Compositor"
|
||||||
VERSION ${VER})
|
VERSION ${VER})
|
||||||
|
|
||||||
|
include(CheckIncludeFile)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
set(HYPRLAND_VERSION ${VER})
|
set(HYPRLAND_VERSION ${VER})
|
||||||
set(PREFIX ${CMAKE_INSTALL_PREFIX})
|
set(PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||||
set(INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
|
set(INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
Loading…
Reference in a new issue