mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 04:23:49 -07:00
CMake: Suppress CMake warning about GNUInstallDirs
This commit is contained in:
committed by
Mihai Fufezan
parent
51ffd7fa6f
commit
4ae89e1f22
@@ -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})
|
||||||
|
Reference in New Issue
Block a user