From a1f4bdce6a674e4176723b1a93146f2a607d0443 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 8 Jan 2024 09:19:32 +0100 Subject: [PATCH] cmake: don't make eigen a PDLP only dependency math_opt and model_builder_helper also depends on it. --- CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23dc8121c1..281983d2c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,6 +179,10 @@ CMAKE_DEPENDENT_OPTION(BUILD_Protobuf "Build the Protobuf dependency Library" OF "NOT BUILD_DEPS" ON) message(STATUS "Build protobuf: ${BUILD_Protobuf}") +CMAKE_DEPENDENT_OPTION(BUILD_Eigen3 "Build the eigen3 dependency Library" OFF + "NOT BUILD_DEPS" ON) +message(STATUS "Build eigen3: ${BUILD_Eigen3}") + if(BUILD_LP_PARSER) CMAKE_DEPENDENT_OPTION(BUILD_re2 "Build the re2 dependency Library" OFF "NOT BUILD_DEPS" ON) @@ -251,11 +255,6 @@ if(USE_PDLP) CMAKE_DEPENDENT_OPTION(BUILD_PDLP "Build the PDLP dependency Library" ON "NOT BUILD_DEPS" ON) message(STATUS "Build PDLP: ${BUILD_PDLP}") - if(BUILD_PDLP) - CMAKE_DEPENDENT_OPTION(BUILD_Eigen3 "Build the eigen3 dependency Library" OFF - "NOT BUILD_DEPS" ON) - message(STATUS "Build eigen3: ${BUILD_Eigen3}") - endif() endif() ## SCIP