Skip to content

Commit 9e65430

Browse files
authored
Merge pull request #1703 from wsttiger/cmake_fix
Set EXPORT_NAME to match OpenBLASConfig.cmake
2 parents 2cfa86b + 2a9a938 commit 9e65430

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ endif()
150150

151151
# add objects to the openblas lib
152152
add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${RELA_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE})
153+
target_include_directories(${OpenBLAS_LIBNAME} INTERFACE $<INSTALL_INTERFACE:include>)
153154

154155
# Android needs to explicitly link against libm
155156
if(ANDROID)
@@ -169,6 +170,7 @@ endif()
169170
# Set output for libopenblas
170171
set_target_properties( ${OpenBLAS_LIBNAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
171172
set_target_properties( ${OpenBLAS_LIBNAME} PROPERTIES LIBRARY_OUTPUT_NAME_DEBUG "${OpenBLAS_LIBNAME}_d")
173+
set_target_properties( ${OpenBLAS_LIBNAME} PROPERTIES EXPORT_NAME "OpenBLAS")
172174

173175
foreach (OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
174176
string( TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG )

0 commit comments

Comments
 (0)