From 9ca27bf7cc97ef16658e74c7165862007bcdb9db Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 13 Dec 2023 00:07:47 +0100 Subject: [PATCH] Enable including version.cmake from any directory. --- version.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.cmake b/version.cmake index 02ca8748..3b1d6518 100644 --- a/version.cmake +++ b/version.cmake @@ -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.