Move version.cmake to cmake/ subdirectory.

Co-authored-by: Tom Atkinson <tja.atkinson@gmail.com>
This commit is contained in:
Bartosz Taudul 2024-03-16 13:18:39 +01:00
parent 1c43f6efa7
commit 061b990875
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.10)
# Run version helper script
include(version.cmake)
include(cmake/version.cmake)
set(TRACY_VERSION_MAJOR ${major})
set(TRACY_VERSION_MINOR ${minor})

View File

@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.10)
message("Parsing ${CMAKE_CURRENT_LIST_DIR}/public/common/TracyVersion.hpp file")
message("Parsing public/common/TracyVersion.hpp file")
file(READ "${CMAKE_CURRENT_LIST_DIR}/public/common/TracyVersion.hpp" version)
file(READ "${CMAKE_CURRENT_LIST_DIR}/../public/common/TracyVersion.hpp" version)
# Note: This looks for a specific pattern in TracyVersion.hpp, if it changes
# this needs updating.

View File

@ -6,7 +6,7 @@ option(LEGACY "Instead of Wayland, use the legacy X11 backend on Linux")
find_package(PkgConfig REQUIRED)
include(../version.cmake)
include(../cmake/version.cmake)
set(TRACY_VERSION_MAJOR ${major})
set(TRACY_VERSION_MINOR ${minor})