Update CMakeLists.txt

This commit is contained in:
Martin Kroeker 2021-11-30 13:20:09 +01:00 committed by GitHub
parent f52ff40606
commit c21bf68909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ endif()
if (APPLE)
set (CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
ifndef(NOFORTRAN)
if (NOT NOFORTRAN)
set (CMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS 1)
set (CMAKE_Fortran_CREATE_SHARED_LIBRARY
"sh -c 'cat ${CMAKE_BINARY_DIR}/CMakeFiles/openblas_shared.dir/objects*.rsp | xargs -n 1024 ar -ru libopenblas.a && exit 0' "