mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Fix cmake Eigen include directory (#1862)
This currently only breaks when cmake is configured with WITH_TESTS but ultimately this would have affected wpilibc builds too.
This commit is contained in:
@@ -126,7 +126,7 @@ target_link_libraries(wpiutil Threads::Threads ${CMAKE_DL_LIBS} ${ATOMIC})
|
||||
if (NOT USE_VCPKG_EIGEN)
|
||||
install(DIRECTORY src/main/native/eigen/ DESTINATION "${include_dest}/wpiutil")
|
||||
target_include_directories(wpiutil PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/main/native/eigen>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/main/native/eigeninclude>
|
||||
$<INSTALL_INTERFACE:${include_dest}/wpiutil>)
|
||||
else()
|
||||
find_package(Eigen3 CONFIG REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user