Skip to content

Commit

Permalink
Merge pull request #616 from bjack205/master
Browse files Browse the repository at this point in the history
Link C libraries against build include folder
  • Loading branch information
langou authored Aug 31, 2021
2 parents 56d2616 + b488310 commit c8cb980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CBLAS/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if(HAS_ATTRIBUTE_WEAK_SUPPORT)
target_compile_definitions(${CBLASLIB} PRIVATE HAS_ATTRIBUTE_WEAK_SUPPORT)
endif()
target_include_directories(${CBLASLIB} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
$<BUILD_INTERFACE:${LAPACK_BINARY_DIR}/../include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries(${CBLASLIB} PRIVATE ${BLAS_LIBRARIES})
Expand Down
2 changes: 1 addition & 1 deletion LAPACKE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ set_target_properties(
SOVERSION ${LAPACK_MAJOR_VERSION}
)
target_include_directories(${LAPACKELIB} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${LAPACK_BINARY_DIR}/include>
$<INSTALL_INTERFACE:include>
)
if(WIN32 AND NOT UNIX)
Expand Down

0 comments on commit c8cb980

Please sign in to comment.