Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Accelerate LAPACKE
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CMake
Accelerate LAPACKE
Commits
43d3a434
Unverified
Commit
43d3a434
authored
1 month ago
by
Tim Kaune
Browse files
Options
Downloads
Plain Diff
Merge branch '10-fail-configure-step-if-reference-lapack-fails-to-use-accelerate-blaslapack'
parents
b5c2bb3d
fd00a9ac
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/CMakeLists.txt
+12
-0
12 additions, 0 deletions
src/CMakeLists.txt
with
13 additions
and
1 deletion
CMakeLists.txt
+
1
−
1
View file @
43d3a434
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
12
−
0
View file @
43d3a434
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment