Skip to content

Prefer matching SystemC libdir before lib* fallback - #348

Open
eactor wants to merge 2 commits into
accellera-official:mainfrom
eactor:find_systemc_discovery2
Open

Prefer matching SystemC libdir before lib* fallback#348
eactor wants to merge 2 commits into
accellera-official:mainfrom
eactor:find_systemc_discovery2

Conversation

@eactor

@eactor eactor commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

PR #347 allows custom SystemC library directories discovery by adding all ${SYSTEMC_HOME}/lib* directories to the search path.

When multiple variants exist within SystemC Home, prefer ${SYSTEMC_HOME}/${CMAKE_INSTALL_LIBDIR} first. This is our best available guess as the user probably uses the CMAKE_INSTALL_LIBDIR for both SystemC and CCI. This avoids relying on glob order for multiple lib* dirs.

The existing lib* search remains as fallback.

eactor and others added 2 commits August 11, 2026 13:53
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.
Do not add SYSTEMC_HOME-derived guesses when the user selects a package configuration directory. Otherwise an invalid explicit selection could silently resolve to another SystemC installation.

-DSystemCLanguage_DIR=... given
    -> search only there
    -> invalid => configure fails

not given
    -> use SYSTEMC_HOME
    -> preferred libdir
    -> lib* guessing
@eactor

eactor commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Make explicit SystemCLanguage_DIR authoritative.
When the user selects a package configuration directory this is the one and only place to look for SystemC.

-DSystemCLanguage_DIR=... given
-> search only there
-> invalid => configure fails

not given
-> use SYSTEMC_HOME
-> preferred libdir
-> lib* guessing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant