-# Copyright (C) 2020-2021 CEA/DEN, EDF R&D
+# Copyright (C) 2020-2023 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
INCLUDE(Common)
INCLUDE(UnitTest)
+IF(NOT Boost_INCLUDE_DIR)
+ FILE(TO_CMAKE_PATH "$ENV{BOOST_ROOT_DIR}" BOOST_ROOT)
+ FIND_PACKAGE(Boost REQUIRED)
+ENDIF()
+
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${Boost_INCLUDE_DIR}