From 6f47f3d5af07d07effe4466d0d8ee43eb430cbe4 Mon Sep 17 00:00:00 2001 From: William Pettersson Date: Fri, 25 Jun 2021 09:40:39 +0100 Subject: [PATCH] Tweaks to boost program_options value required an argument (true/false), whereas bool_switch is new (since 1.59) and is an actual switch. --- CMakeLists.txt | 2 +- src/aira.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10b7c0a..d880ba7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ FIND_PACKAGE(CPLEX REQUIRED) INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIR}) LINK_DIRECTORIES(${CPLEX_LIBRARY_PATH}) -FIND_PACKAGE(Boost 1.57.0 COMPONENTS program_options) +FIND_PACKAGE(Boost 1.59.0 COMPONENTS program_options) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG") diff --git a/src/aira.cpp b/src/aira.cpp index 34b3663..9af5e8b 100644 --- a/src/aira.cpp +++ b/src/aira.cpp @@ -181,7 +181,7 @@ int main (int argc, char *argv[]) "If splitting, assume a normal distribution for objective values\n" "Optional, defaults to False.") ("spread,s", - po::value(&spread)->default_value(true), + po::bool_switch(&spread)->default_value(true), "Spread threads out over various subgroups of the symmetries (as opposed to clustering inside subgroups).\n" "Optional, defaults to True") ("threads,t",