diff --git a/CMakeLists.txt b/CMakeLists.txt index b108ac78149580c53b6ce7ce24d438e8072c1b0f..5976ece417dd8ecd18ad95fb6951637790dffc83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ set(CMAKE_MAXIMUM_SUPPORTED_VERSION 4.0) cmake_minimum_required(VERSION 3.12...${CMAKE_MAXIMUM_SUPPORTED_VERSION}) -project(AccelerateLAPACKE VERSION 1.6.0 LANGUAGES C Fortran) +project(AccelerateLAPACKE VERSION 1.6.1 LANGUAGES C Fortran) include(FetchContent) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 07918924c28d112b62648abe855d9d81fbc4d5ad..b8a6594c663f3ad2e883480a5844c9b5ee89b5da 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,12 +63,24 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL 4) endif () if (BUILD_INDEX64) + if (TARGET "blas64") + message(FATAL_ERROR "LAPACKE failed to use BLAS provided by Accelerate and included Netlib's Reference BLAS implementation into the build.") + elseif (TARGET "lapack64") + message(FATAL_ERROR "LAPACKE failed to use LAPACK provided by Accelerate and included Netlib's Reference LAPACK implementation into the build.") + endif () + # Replace the LINK_LIBRARIES of the lapacke64 target with the ILP64 ones. # The lapacke64 target was created linking to the NEW_LAPACK_IMPORTED # target, which we had to add to satisfy the Check... tests, that the # Reference LAPACK build script does. set_target_properties(lapacke64 PROPERTIES LINK_LIBRARIES "${LAPACK_LIBRARIES}") else () + if (TARGET "blas") + message(FATAL_ERROR "LAPACKE failed to use BLAS provided by Accelerate and included Netlib's Reference BLAS implementation into the build.") + elseif (TARGET "lapack") + message(FATAL_ERROR "LAPACKE failed to use LAPACK provided by Accelerate and included Netlib's Reference LAPACK implementation into the build.") + endif () + # Replace the LINK_LIBRARIES of the lapacke target with the NEWLAPACK ones. # The lapacke target was created linking to the NEW_LAPACK_IMPORTED target, # which we had to add to satisfy the Check... tests, that the Reference