cmake: make re2 a mandatory dependency
This commit is contained in:
@@ -62,12 +62,10 @@ if(NOT TARGET Eigen3::Eigen)
|
||||
message(FATAL_ERROR "Target Eigen3::Eigen not available.")
|
||||
endif()
|
||||
|
||||
if(BUILD_LP_PARSER OR BUILD_TESTING)
|
||||
if(NOT TARGET re2::re2)
|
||||
message(FATAL_ERROR "Target re2::re2 not available.")
|
||||
endif()
|
||||
set(RE2_DEPS re2::re2)
|
||||
if(NOT TARGET re2::re2)
|
||||
message(FATAL_ERROR "Target re2::re2 not available.")
|
||||
endif()
|
||||
set(RE2_DEPS re2::re2)
|
||||
|
||||
if(USE_COINOR)
|
||||
if(NOT TARGET Coin::CbcSolver)
|
||||
|
||||
@@ -38,10 +38,8 @@ if(NOT BUILD_Eigen3)
|
||||
find_package(Eigen3 REQUIRED)
|
||||
endif()
|
||||
|
||||
if(BUILD_LP_PARSER OR BUILD_TESTING)
|
||||
if(NOT BUILD_re2)
|
||||
find_package(re2 REQUIRED)
|
||||
endif()
|
||||
if(NOT BUILD_re2 AND NOT TARGET re2::re2)
|
||||
find_package(re2 REQUIRED)
|
||||
endif()
|
||||
|
||||
if(USE_COINOR)
|
||||
|
||||
Reference in New Issue
Block a user