Search for existing SystemC library in FetchContent.

This commit is contained in:
Lukas Steiner
2023-05-22 11:44:20 +02:00
parent 50e87b7a63
commit a09a97423b

View File

@@ -132,14 +132,15 @@ endif()
# add_library(sqlite::sqlite3 ALIAS SQLite3)
### SystemC ###
list(APPEND CMAKE_PREFIX_PATH $ENV{SYSTEMC_HOME} /opt/systemc/)
FetchContent_Declare(
systemc
GIT_REPOSITORY https://github.com/accellera-official/systemc.git
GIT_TAG 2.3.4)
GIT_TAG 2.3.4
FIND_PACKAGE_ARGS NAMES SystemCLanguage)
set(DISABLE_COPYRIGHT_MESSAGE True)
FetchContent_MakeAvailable(systemc)
set_target_properties(systemc PROPERTIES FOLDER lib)
### DRAMPower ###
if (DRAMSYS_WITH_DRAMPOWER)