dev cmake_source_dir (#1052)

* when package used as subdirectory (cmake-subfolder-example) it fails when python is used because the cmake_source_dir is now the one above package.

* changed cmake_current_list_dir to cmake_current_source_dir

* removing the unnecessary VERSION file installed in the root directory (from PR #1020)
This commit is contained in:
2024-11-25 14:55:22 +01:00
committed by GitHub
parent 0123169e35
commit 1f16f84fed
2 changed files with 4 additions and 6 deletions

View File

@ -64,7 +64,7 @@ configure_file( scripts/test_virtual.py
${CMAKE_BINARY_DIR}/test_virtual.py
)
configure_file( ${CMAKE_CURRENT_LIST_DIR}/../VERSION
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/../VERSION
${CMAKE_BINARY_DIR}/bin/slsdet/VERSION
)