File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,11 +309,9 @@ if (USE_OPENMP)
309309endif ()
310310
311311# Fix "Argument list too long" for macOS - mostly seen with older OS versions on POWERPC or Intel CPUs
312- if (APPLE )
312+ if (APPLE AND " ${CMAKE_GENERATOR} " MATCHES ".*Makefiles" )
313313 # Use response files to get around the ARG_MAX limit, unless using the Ninja generator
314- if ("${CMAKE_GENERATOR} " MATCHES ".*Makefiles" )
315- set (CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
316- endif ()
314+ set (CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
317315 # Always build static library first
318316 if (BUILD_STATIC_LIBS)
319317 set (STATIC_PATH "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} /lib${OpenBLAS_LIBNAME} .a" )
@@ -334,9 +332,7 @@ if(APPLE)
334332 set (OMP_LIB "" )
335333 endif ()
336334 if (NOT NOFORTRAN)
337- if ("${CMAKE_GENERATOR} " MATCHES ".*Makefiles" )
338- set (CMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS 1)
339- endif ()
335+ set (CMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS 1)
340336 set (CMAKE_Fortran_CREATE_STATIC_LIBRARY ${CREATE_STATIC_LIBRARY_COMMAND} )
341337 if (BUILD_SHARED_LIBS )
342338 set (CMAKE_Fortran_CREATE_SHARED_LIBRARY
You can’t perform that action at this time.
0 commit comments