Skip to content

Commit

Permalink
Minor fix for Fortran
Browse files Browse the repository at this point in the history
  • Loading branch information
amirmasoudabdol committed Apr 13, 2022
1 parent 3285e65 commit f704611
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Tools/CMake/PatchR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,10 @@ macro(patch_r)

execute_process(
WORKING_DIRECTORY ${R_HOME_PATH}/etc
COMMAND sed -i.bak -e "/FC = gfortran / s/$/ -mmacosx-version-min=11.0/"
Makeconf)

execute_process(
WORKING_DIRECTORY ${R_HOME_PATH}/etc
COMMAND sed -i.bak -e
"/FC = \\/usr\\/local / s/$/ -mmacosx-version-min=11.0/" Makeconf)
COMMAND
sed -i.bak -e
"/FC = \\/opt\\/R\\/arm64\\/bin\\/gfortran / s/$/ -mmacosx-version-min=11.0/"
Makeconf)

execute_process(
WORKING_DIRECTORY ${R_HOME_PATH}/etc
Expand Down

0 comments on commit f704611

Please sign in to comment.