Archived issue #0027027
Cannot build static libraries with BUILD_LIBRARY_TYPE=Static
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.
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.
This issue seems to be already fixed in the occt 7.0 beta
Ivan, please confirm that it is fixed
abv, this issue has been fixed in 7.0 beta
Igor, please switch it to Verified