Skip to content

Commit

Permalink
CMake build has wrong PIC flag for NAG
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Dec 4, 2024
1 parent 5f65846 commit a8b1705
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/system.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ if (NEED_PIC)
if (NOT NOFORTRAN)
if (${F_COMPILER} STREQUAL "SUN")
set(FCOMMON_OPT "${FCOMMON_OPT} -pic")
elseif (${F_COMPILER} STREQUAL "NAG")
set(FCOMMON_OPT "${FCOMMON_OPT} -PIC")
else ()
set(FCOMMON_OPT "${FCOMMON_OPT} -fPIC")
endif ()
Expand Down

0 comments on commit a8b1705

Please sign in to comment.