Skip to content
Snippets Groups Projects
Commit 1df8ee07 authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

Specify MODULE or CONFIG in find_package

parent 9c4266fe
No related branches found
No related tags found
2 merge requests!451After cmake and const refactor,!445Resolve "Refactoring WOLF installation system"
Pipeline #10648 canceled
......@@ -77,13 +77,13 @@ ENDIF()
option(_WOLF_TRACE "Enable wolf tracing macro" ON)
# ============ DEPENDENCIES ============
FIND_PACKAGE(Threads REQUIRED)
FIND_PACKAGE(Ceres REQUIRED)
FIND_PACKAGE(Eigen3 3.3 REQUIRED)
FIND_PACKAGE(Threads REQUIRED MODULE)
FIND_PACKAGE(Ceres REQUIRED CONFIG)
FIND_PACKAGE(Eigen3 3.3 REQUIRED CONFIG)
if(${EIGEN3_VERSION_STRING} VERSION_LESS 3.3)
message(FATAL_ERROR "Wolf requires Eigen >= 3.3. Found Eigen ${EIGEN3_VERSION_STRING}")
endif()
FIND_PACKAGE(yaml-cpp REQUIRED)
FIND_PACKAGE(yaml-cpp REQUIRED CONFIG)
# ============ config.h ============
set(_WOLF_ROOT_DIR ${CMAKE_SOURCE_DIR})
......@@ -513,7 +513,7 @@ INSTALL(DIRECTORY ${SPDLOG_INCLUDE_DIRS} DESTINATION "include/iri-algorithms/")
export(PACKAGE ${PLUGIN_NAME})
FIND_PACKAGE(Doxygen)
FIND_PACKAGE(Doxygen MODULE)
FIND_PATH(IRI_DOC_DIR doxygen.conf ${CMAKE_SOURCE_DIR}/doc/iri_doc/)
IF (IRI_DOC_DIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment