From 679253bf753d471c2e5850105d01eb717803cd7f Mon Sep 17 00:00:00 2001 From: Moran Charlou <57400062+mcharlou@users.noreply.github.com> Date: Thu, 13 Mar 2025 15:14:47 +0100 Subject: [PATCH] Configure .VERSION.in in CMAKE_CURRENT_SOURCE_DIR in main CMakeLists.txt. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99d18d8bc..c9fafe352 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ project ( ) # write the version file -configure_file(${CMAKE_SOURCE_DIR}/.VERSION.in ${CMAKE_SOURCE_DIR}/.VERSION) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/.VERSION.in ${CMAKE_CURRENT_SOURCE_DIR}/.VERSION) if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU) option(JSON_FORTRAN_USE_OpenCoarrays