From 7275aa98fb62b6e38385c5735b5aedda75c3911f Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 31 Dec 2020 00:00:13 +0300 Subject: [PATCH] Find 'boost' in Locale module if it was not found before. --- src/Locale/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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} -- 2.39.2