From cecdd43ddace377fdf957fb6ab30dacb6ee90177 Mon Sep 17 00:00:00 2001 From: Emanuele Giacomini Date: Tue, 11 Jun 2024 12:11:16 +0200 Subject: [PATCH] fix in progress on cmake --- mad_icp/CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/mad_icp/CMakeLists.txt b/mad_icp/CMakeLists.txt index 8e916b6..8ac738f 100755 --- a/mad_icp/CMakeLists.txt +++ b/mad_icp/CMakeLists.txt @@ -15,14 +15,7 @@ option(COMPILE_CPP_APPS "Set to ON to compile C++ applications" OFF) # TODO: Detect if Eigen exists in system, oterwhise, download it through FetchContent find_package(Eigen3 3.3 NO_MODULE) -if(NOT DEFINED Eigen3_DIR) - message("Eigen3_DIR is not defined") -else() - message("Eigen3_DIR is defined") - message("Its value is ${Eigen3_DIR}") -endif() - -if(NOT DEFINED Eigen3_DIR) +if(${Eigen3_DIR} STREQUAL "Eigen3_DIR-NOTFOUND") message(CHECK_START "Fetching Eigen3") list(APPEND CMAKE_MESSAGE_INDENT " ")