From bb18a2b4288f6230f854000fa5188b1a86a49942 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Fri, 26 Aug 2022 17:09:52 +0200 Subject: [PATCH] Fix TBB in case of Conan + NodeJS build (#6333) --- CHANGELOG.md | 1 + src/nodejs/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e31e267ae..7ad8b5eef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - FIXED: Bug in bicycle profile that caused exceptions if there is a highway=bicycle in the data. [#6296](https://github.com/Project-OSRM/osrm-backend/pull/6296) - FIXED: Internal refactoring of identifier types used in data facade [#6044](https://github.com/Project-OSRM/osrm-backend/pull/6044) - Build: + - CHANGED: Fix TBB in case of Conan + NodeJS build. [#6333](https://github.com/Project-OSRM/osrm-backend/pull/6333) - CHANGED: Migrate to modern TBB version. [#6300](https://github.com/Project-OSRM/osrm-backend/pull/6300) - CHANGED: Enable performance-move-const-arg clang-tidy check. [#6319](https://github.com/Project-OSRM/osrm-backend/pull/6319) - CHANGED: Use the latest node on CI. [#6317](https://github.com/Project-OSRM/osrm-backend/pull/6317) diff --git a/src/nodejs/CMakeLists.txt b/src/nodejs/CMakeLists.txt index fe2a1fff6..c934dc6f7 100644 --- a/src/nodejs/CMakeLists.txt +++ b/src/nodejs/CMakeLists.txt @@ -33,8 +33,8 @@ endforeach(binary) # For mason-enabled builds we copy over tbb's shared objects for packaging. # TODO: consider using statically linked tbb library (for node_osrm only!) -if (ENABLE_MASON) - foreach(libpath ${MASON_PACKAGE_tbb_LIBRARY_DIRS}) +if (ENABLE_CONAN) + foreach(libpath ${CONAN_LIB_DIRS_ONETBB}) file(GLOB TBBGlob ${libpath}/*.*) foreach(filepath ${TBBGlob}) get_filename_component(filename ${filepath} NAME)