accellera-official / cci

SystemC Configuration, Control and Inspection (CCI)
https://systemc.org/overview/systemc-cci/
Apache License 2.0
12 stars 13 forks source link

cci supports dll compilation on windows. #293

Open zwbuptgithub opened 1 year ago

zwbuptgithub commented 1 year ago

CCI should support dll compilation on windows. For now even i set cmake parameter BUILD_SHARED_LIBS on command line, there are several issues.

  1. top CMakeLists.txt line 228, there is a syntax error in set (BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libraries." FORCE)
  2. if comment out the line 226-228, there are still unresolved symbol error during linking/build time, suggest to add following set_target_properties(cci PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE POSITION_INDEPENDENT_CODE ON )