Skip to content

Commit

Permalink
chore: Update CMakeLists.txt to use CMAKE_CURRENT_SOURCE_DIR instead …
Browse files Browse the repository at this point in the history
…of CMAKE_SOURCE_DIR
  • Loading branch information
fbriol committed Jul 22, 2024
1 parent fe3d666 commit 911babf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 911babf

Please sign in to comment.