Skip to content

Commit 8ebb7f3

Browse files
authored
Merge pull request #170 from hunter-packages/cblas_add_include
cblas: add include directory to target
2 parents e774b43 + 380178e commit 8ebb7f3

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CBLAS/src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,9 @@ set_target_properties(
120120
VERSION ${LAPACK_VERSION}
121121
SOVERSION ${LAPACK_MAJOR_VERSION}
122122
)
123+
target_include_directories(cblas PUBLIC
124+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
125+
$<INSTALL_INTERFACE:include>
126+
)
123127
target_link_libraries(cblas PRIVATE ${BLAS_LIBRARIES})
124128
lapack_install_library(cblas)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.10)
1+
cmake_minimum_required(VERSION 2.8.12)
22

33
# Set a default build type if none was specified
44
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)

0 commit comments

Comments
 (0)