accellera-official / systemc

SystemC Reference Implementation
https://systemc.org/overview/systemc/
Apache License 2.0
445 stars 141 forks source link

Enable shared library build without global flag #63

Closed aut0 closed 6 months ago

aut0 commented 7 months ago

SystemC's CMakeLists.txt used to rely on the global BUILD_SHARED_LIBS flag to enable building SystemC as a shared library. This also forces all other libraries in the project to be build as shared libraries. This commit enables the user to select only SystemC to be build as a shared library without forcing this on all other libraries in the cmake project.