Enable including version.cmake from any directory.

This commit is contained in:
Bartosz Taudul 2023-12-13 00:07:47 +01:00
parent ac031e64d6
commit 9ca27bf7cc
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.10)
message("Parsing public/common/TracyVersion.hpp file")
message("Parsing ${CMAKE_CURRENT_LIST_DIR}/public/common/TracyVersion.hpp file")
file(READ "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.