diff --git a/3rdParty/rbdl/CMakeLists.txt b/3rdParty/rbdl/CMakeLists.txt index 390c23881c2bbf3cad8dda601d98164440b433b2..1a49e0c92751d7cde2469b3c6be628d862218031 100644 --- a/3rdParty/rbdl/CMakeLists.txt +++ b/3rdParty/rbdl/CMakeLists.txt @@ -159,7 +159,7 @@ ENDIF (RBDL_BUILD_STATIC) # Find and use the system's Eigen3 library FIND_PACKAGE (Eigen3 REQUIRED) -target_include_directories(rbdl SYSTEM PUBLIC ${Eigen3_INCLUDE_DIR}) +target_link_libraries(rbdl PUBLIC Eigen3::Eigen) IF (RBDL_STORE_VERSION) # Set versioning information that can be queried during runtime diff --git a/3rdParty/rbdl/examples/simple/CMakeLists.txt b/3rdParty/rbdl/examples/simple/CMakeLists.txt index 2b3a7e4f7107d56326438d9ab11c60c9555d9adc..41cfe16a90a5499d501639f9dc152b2839fd9af4 100644 --- a/3rdParty/rbdl/examples/simple/CMakeLists.txt +++ b/3rdParty/rbdl/examples/simple/CMakeLists.txt @@ -11,7 +11,7 @@ FIND_PACKAGE (RBDL REQUIRED) FIND_PACKAGE (Eigen3 3.0.0 REQUIRED) # Add the include directory to the include paths -INCLUDE_DIRECTORIES ( ${RBDL_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} ) +target_link_libraries(rbdl PUBLIC Eigen3::Eigen) # Create an executable ADD_EXECUTABLE (example example.cc)