From ebe3b0d327829d501b75df96709ccd7677911a83 Mon Sep 17 00:00:00 2001 From: TeoGiane Date: Tue, 30 Jan 2024 14:09:13 +0100 Subject: [PATCH] Export BAYESMIX_TBB_ROOT to parent scope --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 854d2b22..34946092 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,7 @@ SET_SOURCE_FILES_PROPERTIES(${PROTO_SRCS} ${PROTO_HDRS} PROPERTIES GENERATED TRU # Export variables to parent scope if bayesmix is used as dependency library get_directory_property(HAS_PARENT PARENT_DIRECTORY) if(HAS_PARENT) + set(BAYESMIX_TBB_ROOT ${TBB_ROOT} PARENT_SCOPE) set(BAYESMIX_INCLUDE_PATHS ${INCLUDE_PATHS} PARENT_SCOPE) set(BAYESMIX_LINK_LIBRARIES ${LINK_LIBRARIES} PARENT_SCOPE) set(BAYESMIX_COMPILE_OPTIONS ${COMPILE_OPTIONS} PARENT_SCOPE)