Skip to content

Commit

Permalink
readlink -f ${FORTRAN_LIB_PATH}
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed May 19, 2024
1 parent 8e340a2 commit 948378f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmake/PyneMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,7 @@ macro(pyne_setup_fortran)
)
if(FORTRAN_LIB_PATH)
message(STATUS "Found Fortran library path: ${FORTRAN_LIB_PATH}")
if(APPLE)
# Resolve the symlink to find the actual file
execute_process(COMMAND readlink ${FORTRAN_LIB_PATH}
OUTPUT_VARIABLE FORTRAN_LIB_REAL_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
elseif(UNIX)
if(UNIX)
# Resolve the symlink to find the actual file
execute_process(COMMAND readlink -f ${FORTRAN_LIB_PATH}
OUTPUT_VARIABLE FORTRAN_LIB_REAL_PATH
Expand Down

0 comments on commit 948378f

Please sign in to comment.