forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow external Eigen3 (RobotLocomotion#16700)
Add logic (only when using the CMake wrapper) to allow the user to select and use an external version of Eigen3.
- Loading branch information
1 parent
f88c6a7
commit fd54e8e
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- python -*- | ||
|
||
load("@drake//tools/install:install.bzl", "install") | ||
load("@drake//tools/workspace:cmake_util.bzl", "split_cmake_list") | ||
|
||
EIGEN_DEFINES = split_cmake_list( | ||
"$<TARGET_PROPERTY:Eigen3::Eigen,INTERFACE_COMPILE_DEFINITIONS>", | ||
) | ||
|
||
cc_library( | ||
name = "eigen", | ||
hdrs = glob( | ||
["include/**"], | ||
allow_empty = False, | ||
), | ||
defines = EIGEN_DEFINES, | ||
includes = ["include"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
install( | ||
name = "install", | ||
visibility = ["//visibility:public"], | ||
) |