From e4b8b3f6ef4e19219c6b534825322cba061e8a1a Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 18 Oct 2023 13:58:34 -0400 Subject: [PATCH] Clean up the external-boost framework. --- Exception.test/exception.cc | 1 + ProgramOptions.h | 1 + cmake/rules.cmake | 8 +++++++- string_algorithms.h | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Exception.test/exception.cc b/Exception.test/exception.cc index 55f1eef..cdad7dd 100644 --- a/Exception.test/exception.cc +++ b/Exception.test/exception.cc @@ -24,6 +24,7 @@ namespace { namespace util= Alepha::Utility; using namespace Alepha::Testing::exports; + namespace boost= Alepha::boost; struct tag; diff --git a/ProgramOptions.h b/ProgramOptions.h index ecbf3a5..10b9b06 100644 --- a/ProgramOptions.h +++ b/ProgramOptions.h @@ -78,6 +78,7 @@ static_assert( __cplusplus > 2020'00 ); * an informative message about the parsing error encountered. */ +#include #include #include diff --git a/cmake/rules.cmake b/cmake/rules.cmake index 70e49fc..bdee9d6 100644 --- a/cmake/rules.cmake +++ b/cmake/rules.cmake @@ -1,6 +1,7 @@ #cmake_policy( SET CMP0002 OLD ) -add_compile_options( -I ${CMAKE_BINARY_DIR} ; -std=c++20 ; -I . ) +add_compile_options( -std=c++20 ) +include_directories( ${CMAKE_BINARY_DIR} . ) list( APPEND CMAKE_CTEST_ARGUMENTS "-VV" ) @@ -11,6 +12,11 @@ set( CMAKE_VERBOSE_MAKEFILE true ) file( CREATE_LINK ${CMAKE_SOURCE_DIR} Alepha SYMBOLIC ) +if( DEFINED ALEPHA_BOOST_PATH ) +file( CREATE_LINK ${CMAKE_BINARY_DIR}/${ALEPHA_BOOST_PATH} boost SYMBOLIC ) +include_directories( ${CMAKE_BINARY_DIR}/${ALEPHA_BOOST_PATH}/.. ) +endif() + include(CTest) diff --git a/string_algorithms.h b/string_algorithms.h index 4ac44b1..140610c 100644 --- a/string_algorithms.h +++ b/string_algorithms.h @@ -2,6 +2,8 @@ static_assert( __cplusplus > 2020'00 ); #pragma once +#include + #include #include