Find systemc discovery - #347
Merged
Merged
Conversation
comments updated
eactor
added a commit
to eactor/cci
that referenced
this pull request
Aug 11, 2026
PR accellera-official#347 allows custom SystemC library directories by adding all ${SYSTEMC_HOME}/lib* directories to the search path. When multiple variants exist, prefer ${SYSTEMC_HOME}/${CMAKE_INSTALL_LIBDIR} first. While CCI and SystemC may use different install settings, this is our best available guess and avoids relying on glob order when both use the same configuration. The existing lib* search remains as fallback.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
find_package(SystemCLanguage) from CCI happens in configuration/CMakeLists.txt (sub-directory) which only hardcodes /opt/systemc this will make cmake look into /opt/systemc/lib/cmake/SystemCLanguage and /opt/systemc/lib64/cmake/SystemCLanguage
It would be nice if cmake would discover SystemC installations by SYSTEMC_HOME. In addition it should still discover it, if custom CMAKE_INSTALL_LIBDIR was used which is not /lib or /lib64. (e.g. linux64 ...)
The code therefore adds $SYSTEMC_HOME to CMAKE_PREFIX_PATH and the underlying lib dirs
I'm not a cmake specialist but I'm currently working on cmake for SystemC AMS were needed it as well, feedback is welcome.