From: azv Date: Wed, 30 Dec 2020 21:00:13 +0000 (+0300) Subject: Find 'boost' in Locale module if it was not found before. X-Git-Tag: V9_8_0a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7275aa98fb62b6e38385c5735b5aedda75c3911f;p=modules%2Fshaper.git Find 'boost' in Locale module if it was not found before. --- diff --git a/src/Locale/CMakeLists.txt b/src/Locale/CMakeLists.txt index 332af8b86..a111cc193 100644 --- a/src/Locale/CMakeLists.txt +++ b/src/Locale/CMakeLists.txt @@ -20,6 +20,11 @@ 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}