From d820b4ae7073c2658bec2b2cf7db0a0de75dae1d Mon Sep 17 00:00:00 2001 From: Oleksandr Moskalenko Date: Tue, 9 Aug 2022 17:21:01 -0400 Subject: [PATCH] Add a check for boost and add its include directory to the build --- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 05e018c..77206dd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,13 @@ cmake_minimum_required (VERSION 2.6) project (wASTRAL) +FIND_PACKAGE(Boost) +IF (Boost_FOUND) + INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) + ADD_DEFINITIONS( "-DHAS_BOOST" ) +ENDIF() + + link_directories(/usr/local/lib ) file(GLOB SOURCES *.cpp) add_definitions(-std=c++11 -g -O3 -Wall -fopenmp)