Skip to content

Commit 1258056

Browse files
committed
build: prefer using get_filename_component(ABSOLUTE) which is compatible cmake 3.4 again 3.19 for file(REAL_PATH)
1 parent de40090 commit 1258056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ add_executable(idefix)
7676
add_subdirectory(src build)
7777

7878
# make absolute
79-
file(REAL_PATH ${Idefix_PROBLEM_DIR} Idefix_PROBLEM_DIR_ABS BASE_DIRECTORY ${PROJECT_BINARY_DIR})
79+
get_filename_component(Idefix_PROBLEM_DIR_ABS ${Idefix_PROBLEM_DIR} ABSOLUTE BASE_DIR ${PROJECT_BINARY_DIR})
8080

8181
if(EXISTS ${Idefix_PROBLEM_DIR_ABS}/setup.cpp)
8282
target_sources(idefix PUBLIC ${Idefix_PROBLEM_DIR_ABS}/setup.cpp)

0 commit comments

Comments
 (0)