File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,19 +304,14 @@ if(APPLE AND DYNAMIC_ARCH AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
304304 # Use response files
305305 set (CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
306306 # Always build static library first
307- if (INTERFACE64)
308- set (STATIC_FILE "libopenblas_64.a" )
309- else ()
310- set (STATIC_FILE "libopenblas.a" )
311- endif ()
312307 if (BUILD_STATIC_LIBS)
313- set (STATIC_PATH "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} /${STATIC_FILE} " )
308+ set (STATIC_PATH "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} /lib ${OpenBLAS_LIBNAME} .a " )
314309 else ()
315310 add_library (${OpenBLAS_LIBNAME} _static STATIC ${TARGET_OBJS} ${OpenBLAS_DEF_FILE} )
316- set (STATIC_PATH STATIC_FILE )
311+ set (STATIC_PATH "lib ${OpenBLAS_LIBNAME} .a" )
317312 endif ()
318313 set (CREATE_STATIC_LIBRARY_COMMAND
319- "sh -c 'cat ${CMAKE_BINARY_DIR} /CMakeFiles/openblas_shared .dir/objects*.rsp | xargs -n 1024 ${CMAKE_AR} -ru ${STATIC_PATH} && exit 0' "
314+ "sh -c 'cat ${CMAKE_BINARY_DIR} /CMakeFiles/${OpenBLAS_LIBNAME} _static .dir/objects*.rsp | xargs -n 1024 ${CMAKE_AR} -ru ${STATIC_PATH} && exit 0' "
320315 "sh -c '${CMAKE_AR} -rs ${STATIC_PATH} ${CMAKE_BINARY_DIR} /driver/others/CMakeFiles/driver_others.dir/xerbla.c.o && exit 0' " )
321316 if (BUILD_SHARED_LIBS )
322317 add_dependencies (${OpenBLAS_LIBNAME} _shared ${OpenBLAS_LIBNAME} _static )
You can’t perform that action at this time.
0 commit comments