1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-24 19:40:12 +00:00

use eigen as an IMPORTED target in CMake

Eigen considers the EIGEN3_INCLUDE_DIRS and EIGEN3_DEFINITIONS variables
to be deprecated and they will no longer be exported in the next release
after 3.4.0:
f2984cd077

Use the IMPORTED target instead, which seems to be the preferred way of
consuming third-party CMake libraries.
This commit is contained in:
Dan Callaghan
2023-01-24 13:11:50 +11:00
parent 985c688bf6
commit 4c7e805f18

View File

@@ -225,8 +225,7 @@ include_directories(common/kernel/ common/place/ common/route/ json/ frontend/ 3
if(BUILD_HEAP)
find_package (Eigen3 REQUIRED NO_MODULE)
include_directories(${EIGEN3_INCLUDE_DIRS})
add_definitions(${EIGEN3_DEFINITIONS})
link_libraries(Eigen3::Eigen)
add_definitions(-DWITH_HEAP)
endif()