Skip to content

Commit

Permalink
Remove C++ Standard Dependency
Browse files Browse the repository at this point in the history
* Remove C++ Standard Dependency for Client of the libraries
* Remove CMake export(PACKAGE ...) as it breaks other installations/configurations of SystemC libraries

Signed-off-by: Ameya Vikram Singh <[email protected]>
  • Loading branch information
AmeyaVS committed Feb 19, 2024
1 parent f0df9d5 commit 909d233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -709,11 +709,6 @@ install (EXPORT SystemCLanguageTargets
DESTINATION ${SystemCLanguage_INSTALL_CMAKEDIR}
COMPONENT dev)

# Register the SystemCLanguage and SystemCTLM packages for use from the
# build tree. (This registers the build tree with the global CMake-registry.)
export (PACKAGE SystemCLanguage)
export (PACKAGE SystemCTLM)

# Create the <Package>Config.cmake and <Package>ConfigVersion files
include(CMakePackageConfigHelpers)
configure_package_config_file(cmake/SystemCLanguageConfig.cmake.in
Expand Down
5 changes: 2 additions & 3 deletions src/sysc/kernel/sc_ver.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ extern SC_API const std::string sc_copyright_string;
SC_CONCAT_UNDERSCORE_( sc_api_version, \
SC_CONCAT_UNDERSCORE_( SC_VERSION_MAJOR, \
SC_CONCAT_UNDERSCORE_( SC_VERSION_MINOR, \
SC_CONCAT_UNDERSCORE_( SC_VERSION_PATCH, \
SC_CONCAT_HELPER_( cxx, SC_CPLUSPLUS ) \
) ) ) )
SC_VERSION_PATCH \
) ) )

// explicitly avoid macro expansion
#define SC_API_DEFINED_( Symbol ) \
Expand Down

0 comments on commit 909d233

Please sign in to comment.