Skip to content
Snippets Groups Projects
Commit 5c2ae1c3 authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge branch 'fix-cmake-realpath' into 'master'

[cmake] Replace file(REAL_PATH ..) with get_filename_component.

See merge request ogs/ogs!3540
parents 291a5761 805d917b
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,7 @@ endfunction()
# Replacement for add_library() for ogs targets
function(ogs_add_library targetName)
foreach(file ${ARGN})
# cmake-lint: disable=E1126
file(REAL_PATH ${file} file_path)
get_filename_component(file_path ${file} REALPATH)
list(APPEND files ${file_path})
endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment