CMake, Meson, Nix: replace props.json with VERSION

This commit is contained in:
Mihai Fufezan 2024-07-18 21:27:03 +03:00
parent faa157e162
commit 928d1dd38a
No known key found for this signature in database
5 changed files with 6 additions and 9 deletions

View file

@ -4,8 +4,8 @@ include(CheckIncludeFile)
include(GNUInstallDirs)
# Get version
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/props.json PROPS)
string(JSON VER GET ${PROPS} version)
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
string(STRIP ${VER_RAW} VER)
project(Hyprland
DESCRIPTION "A Modern C++ Wayland Compositor"