From a09a97423b105b29d42790890e789e753fd839e9 Mon Sep 17 00:00:00 2001 From: Lukas Steiner Date: Mon, 22 May 2023 11:44:20 +0200 Subject: [PATCH] Search for existing SystemC library in FetchContent. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cdf6184..c495f257 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)