Fix TBB in case of Conan + NodeJS build

This commit is contained in:
Siarhei Fedartsou 2022-08-25 17:58:36 +02:00
parent df3c553f4f
commit 8be94d57bb

View File

@ -33,8 +33,9 @@ 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)
message(FATAL_ERROR "DFVRSDFGDFG ${CONAN_LIB_DIRS_ONETBB}")
foreach(libpath ${CONAN_LIB_DIRS_ONETBB})
file(GLOB TBBGlob ${libpath}/*.*)
foreach(filepath ${TBBGlob})
get_filename_component(filename ${filepath} NAME)