Only use available SystemC when SYSTEMC_HOME env is set

This commit is contained in:
2023-10-30 10:17:22 +01:00
parent de20ad5664
commit dc33697e21

View File

@@ -125,7 +125,7 @@ if(DRAMSYS_BUILD_TESTS)
endif()
### SystemC ###
list(APPEND CMAKE_PREFIX_PATH $ENV{SYSTEMC_HOME} /opt/systemc/)
list(APPEND CMAKE_PREFIX_PATH $ENV{SYSTEMC_HOME})
FetchContent_Declare(
systemc
GIT_REPOSITORY https://github.com/accellera-official/systemc.git