Search for existing SystemC library in FetchContent.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user