From 911babfbf650da3724538e45264fc0dd9365f984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20BRIOL?= Date: Mon, 22 Jul 2024 13:39:45 +0200 Subject: [PATCH] chore: Update CMakeLists.txt to use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd8f343..ca750c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ option(BUILD_DOC "Build documentation" OFF) option(BUILD_PYTHON "Build python extension" OFF) # Version -file(STRINGS "${CMAKE_SOURCE_DIR}/include/fes.h" VERSION +file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/include/fes.h" VERSION REGEX "define FES_VERSION") string(REGEX REPLACE ".*([0-9]\\.[0-9]\\.[0-9]).*" "\\1" VERSION ${VERSION}) string(REPLACE "." ";" VERSION_LIST ${VERSION})