diff --git a/CMakeLists.txt b/CMakeLists.txt index 52573c94..dc5803ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,6 +68,15 @@ add_definitions( -D _PARPACK_FOUND=${_PARPACK_FOUND} ) +# avoid "... has no symbols" warnings from ranlib", from +# https://stackoverflow.com/questions/4929255 +if (APPLE) + SET(CMAKE_Fortran_ARCHIVE_CREATE " Scr ") + SET( + CMAKE_Fortran_ARCHIVE_FINISH " -no_warning_for_no_symbols -c " + ) +endif() + # name of library set(LEGOLASLIB lego) # name of executable