Fix external SystemC and update Readme

This commit is contained in:
2024-07-18 11:17:49 +02:00
parent 4d034300a5
commit 0fdb846f3d
2 changed files with 12 additions and 3 deletions

View File

@@ -156,10 +156,14 @@ set(DISABLE_COPYRIGHT_MESSAGE True)
# Allow populating of a user-set SystemC package
if (NOT TARGET SystemC::systemc)
FetchContent_MakeAvailable(systemc)
# Set include directories to SYSTEM to suppress warnings
set_target_properties(systemc PROPERTIES SYSTEM TRUE)
else()
# Set include directories to SYSTEM to suppress warnings
set_target_properties(SystemC::systemc PROPERTIES SYSTEM TRUE)
endif()
# Set include directories to SYSTEM to suppress warnings
set_target_properties(systemc PROPERTIES SYSTEM TRUE)
### DRAMPower ###
if (DRAMSYS_WITH_DRAMPOWER)