Skip to content

Commit 2dc8abe

Browse files
Merge pull request #586 from mcharlou/master
Solve "Wrong path to .VERSION.in when building as a CMake subproject"
2 parents db0c58f + 679253b commit 2dc8abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ project (
4545
)
4646

4747
# write the version file
48-
configure_file(${CMAKE_SOURCE_DIR}/.VERSION.in ${CMAKE_SOURCE_DIR}/.VERSION)
48+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/.VERSION.in ${CMAKE_CURRENT_SOURCE_DIR}/.VERSION)
4949

5050
if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
5151
option(JSON_FORTRAN_USE_OpenCoarrays

0 commit comments

Comments
 (0)