File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,12 @@ message(WARNING "CMake support is experimental. It does not yet support all buil
123123include ("${PROJECT_SOURCE_DIR} /cmake/utils.cmake" )
124124include ("${PROJECT_SOURCE_DIR} /cmake/system.cmake" )
125125
126- set (OpenBLAS_LIBNAME ${LIBNAMEPREFIX} openblas${LIBNAMESUFFIX}${SUFFIX64_UNDERSCORE} )
126+ string (FIND "${LIBNAMESUFFIX} " "${SUFFIX64_UNDERSCORE} " HAVE64)
127+ if (${HAVE64} GREATER -1)
128+ set (OpenBLAS_LIBNAME ${LIBNAMEPREFIX} openblas${LIBNAMESUFFIX} )
129+ else ()
130+ set (OpenBLAS_LIBNAME ${LIBNAMEPREFIX} openblas${LIBNAMESUFFIX}${SUFFIX64_UNDERSCORE} )
131+ endif ()
127132
128133set (BLASDIRS interface driver/level2 driver/level3 driver/others)
129134
@@ -716,4 +721,5 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PN}ConfigVersion.cmake
716721 DESTINATION ${CMAKECONFIG_INSTALL_DIR} )
717722install (EXPORT "${PN}${SUFFIX64} Targets"
718723 NAMESPACE "${PN}${SUFFIX64} ::"
719- DESTINATION ${CMAKECONFIG_INSTALL_DIR} )
724+ DESTINATION ${CMAKECONFIG_INSTALL_DIR} )
725+
You can’t perform that action at this time.
0 commit comments