From b488310e185554fe234f41cca808b84253386986 Mon Sep 17 00:00:00 2001 From: Brian Jackson Date: Tue, 31 Aug 2021 13:30:21 -0400 Subject: [PATCH] Link C libraries against build include folder --- CBLAS/src/CMakeLists.txt | 2 +- LAPACKE/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CBLAS/src/CMakeLists.txt b/CBLAS/src/CMakeLists.txt index fb1d764c63..266b1794e5 100644 --- a/CBLAS/src/CMakeLists.txt +++ b/CBLAS/src/CMakeLists.txt @@ -124,7 +124,7 @@ if(HAS_ATTRIBUTE_WEAK_SUPPORT) target_compile_definitions(${CBLASLIB} PRIVATE HAS_ATTRIBUTE_WEAK_SUPPORT) endif() target_include_directories(${CBLASLIB} PUBLIC - $ + $ $ ) target_link_libraries(${CBLASLIB} PRIVATE ${BLAS_LIBRARIES}) diff --git a/LAPACKE/CMakeLists.txt b/LAPACKE/CMakeLists.txt index 60d5ddbe38..facc2172b6 100644 --- a/LAPACKE/CMakeLists.txt +++ b/LAPACKE/CMakeLists.txt @@ -80,7 +80,7 @@ set_target_properties( SOVERSION ${LAPACK_MAJOR_VERSION} ) target_include_directories(${LAPACKELIB} PUBLIC - $ + $ $ ) if(WIN32 AND NOT UNIX)