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)