Skip to content

Commit 26758a0

Browse files
committed
[CMake] ADD_PROJECT_DEPENDENCY is ready for Eigen3
thanks to PKG_CONFIG_REQUIRES
1 parent 982ab8f commit 26758a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
22

33
# Setup project properties
44
SET(PROJECT_ORG stack-of-tasks)
@@ -26,7 +26,7 @@ PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
2626
INCLUDE(cmake/pthread.cmake)
2727
INCLUDE(cmake/boost.cmake)
2828

29-
ADD_REQUIRED_DEPENDENCY(eigen3)
29+
ADD_PROJECT_DEPENDENCY(Eigen3 REQUIRED PKG_CONFIG_REQUIRES eigen3)
3030
SET(BOOST_COMPONENTS serialization system unit_test_framework thread)
3131
SEARCH_FOR_BOOST()
3232

0 commit comments

Comments
 (0)