DiscussionsIssue archiveOCCT:Configuration

Archived issue #0029277

Configuration, Cmake - remove 3rd-party libraries from INTERFACE_LINK_LIBRARIES property of installed OCCT targets

Open CASCADEOCCT:Configurationclosed5 public notes

Search issues

Description

OCCT (CMake) installation procedure creates OpenCASCADE*Targets.cmake file for each module.
These files contain CMake description of all targets from specific module.
Also property INTERFACE_LINK_LIBRARIES is described for each target.
This property contains the list of transitive link dependencies.
When the target is linked into another target the libraries listed (and recursively their link interface libraries) will be provided to the other target also.

In this case any project which is using OCCT as a 3rd-party product will try to link to transitive links to the OCCT's 3rd-parties (tbb, freeimage and so on).
Sometimes these links contain absolute paths to the libraries and this cause linkage errors if OCCT was taken from some other station.

It is proposed to remove such interface links.

Steps to reproduce

• Configure and generate OCCT;
• Build it and install;
• Check installed OpenCASCADE*Targets.cmake files. They should not contain paths to 3rd-party libraries in property INTERFACE_LINK_LIBRARIES of targets.

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Tue Oct 31 12:07:18 2017 +0300

    0029277: Configuration, Cmake - remove 3rd-party libraries from INTERFACE_LINK_LIBRARIES property of installed OCCT targets
    
    3rd-party libraries were removed from INTERFACE_LINK_LIBRARIES properties of OCCT targets.
02Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Commenter 3
Dear ibs,

please review.
04Commenter 4
there are no remarks
05Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records