DiscussionsIssue archiveOCCT:Configuration

Archived issue #0027027

Cannot build static libraries with BUILD_LIBRARY_TYPE=Static

CommunityOCCT:Configurationclosed4 public notes

Search issues

Description

I tried to build static opencascade libraries on windows with cmake. The setting BUILD_LIBRARY_TYPE does not have any effect. In any case, shared libraries are created.

In CMakeLists.txt, the variable BUILD_SHARED_LIBS is unset. This (non existing) variable is however overridden for each toolkit as add_library is always used with the option SHARED.

To fix this issue, each call too add_library should remove the SHARED argument.

Steps to reproduce

Not required / already fixed

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Author
This issue seems to be already fixed in the occt 7.0 beta

02Commenter 2
Ivan, please confirm that it is fixed
03Commenter 3
abv, this issue has been fixed in 7.0 beta
04Commenter 4
Igor, please switch it to Verified