DiscussionsIssue archiveOCCT:Configuration

Archived issue #0033612

Configuration - Build configuration may fail to detect TBB

CommunityOCCT:Configurationverified5 public notes

Search issues

Description

When trying to configure the sources with -DUSE_TBB=yes, the opencascade configuration system assumes that the installed TBB files were compiled with Release configuration (i.e. built with CMAKE_BUILD_TYPE=Release). This is not always true, here is attached a simple patch to fix the issue doing something similar to VTK detection in adm/cmake/vtk.cmake.

Steps to reproduce

use cmake with -DUSE_TBB on a system where TBB has not been installed with Release configuration

Additional information

the issue is still present in the last development version in the git repository

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Dear Commenter 3 thank you for a patch.
Currently TBB integration is a little incorrect and Iḿ reworking that.
But as a hotfix, we integrate your solution.
02Commenter 2
At least I have the same issue on Debian 11(aarch64)
03Commenter 4
Branch [archived branch] has been created by Commenter 2.

[revision removed]


Detailed log of new commits:

Author: Commenter 2
Date: Fri Apr 12 10:32:07 2024 +0000

    0033612: Configuration - build configuration may fail to detect TBB external libraries
    
    Fixed TBB type to depends on package
04Commenter 2
Dear Commenter 1,
please integrate:
OCCT: CR33612

PR - https://github.com/Open-Cascade-SAS/OCCT/pull/41
05Commenter 4
Branch [archived branch] has been deleted by Commenter 2.

[revision removed]