File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed 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")
304
304
# Use response files
305
305
set (CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1 )
306
306
# 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 ()
312
307
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 " )
314
309
else ()
315
310
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" )
317
312
endif ()
318
313
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' "
320
315
"sh -c '${CMAKE_AR} -rs ${STATIC_PATH} ${CMAKE_BINARY_DIR} /driver/others/CMakeFiles/driver_others.dir/xerbla.c.o && exit 0' " )
321
316
if (BUILD_SHARED_LIBS )
322
317
add_dependencies (${OpenBLAS_LIBNAME} _shared ${OpenBLAS_LIBNAME} _static )
You can’t perform that action at this time.
0 commit comments