Remove file globs from CMakeLists
Fix build
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
option(DRAMSYS_EXTENSION_DDR5_ENABLE "Enable DRAMSys DDR5 Support" ON)
|
||||
|
||||
if(DRAMSYS_EXTENSION_DDR5_ENABLE)
|
||||
message(STATUS " * DDR5")
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp)
|
||||
file(GLOB_RECURSE HEADER_FILES CONFIGURE_DEPENDS *.h;*.hpp)
|
||||
|
||||
target_sources(DRAMSys_libdramsys PRIVATE ${SOURCE_FILES} ${HEADER_FILES})
|
||||
target_include_directories(DRAMSys_libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_compile_definitions(DRAMSys_libdramsys PUBLIC DDR5_SIM)
|
||||
|
||||
build_source_group()
|
||||
if(NOT DRAMSYS_EXTENSION_DDR5_ENABLE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
message(STATUS " * DDR5")
|
||||
|
||||
target_sources(DRAMSys_libdramsys PRIVATE
|
||||
DRAMSys/configuration/memspec/MemSpecDDR5.cpp
|
||||
DRAMSys/controller/checker/CheckerDDR5.cpp
|
||||
)
|
||||
|
||||
target_include_directories(DRAMSys_libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_compile_definitions(DRAMSys_libdramsys PUBLIC DDR5_SIM)
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
option(DRAMSYS_EXTENSION_HBM3_ENABLE "Enable DRAMSys HBM3 Support" ON)
|
||||
|
||||
if(DRAMSYS_EXTENSION_HBM3_ENABLE)
|
||||
message(STATUS " * HBM3")
|
||||
if(NOT DRAMSYS_EXTENSION_HBM3_ENABLE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp)
|
||||
file(GLOB_RECURSE HEADER_FILES CONFIGURE_DEPENDS *.h;*.hpp)
|
||||
message(STATUS " * HBM3")
|
||||
|
||||
target_sources(DRAMSys_libdramsys PRIVATE ${SOURCE_FILES} ${HEADER_FILES})
|
||||
target_include_directories(DRAMSys_libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_compile_definitions(DRAMSys_libdramsys PUBLIC HBM3_SIM)
|
||||
target_sources(DRAMSys_libdramsys PRIVATE
|
||||
DRAMSys/configuration/memspec/MemSpecHBM3.cpp
|
||||
DRAMSys/controller/checker/CheckerHBM3.cpp
|
||||
)
|
||||
|
||||
build_source_group()
|
||||
endif()
|
||||
target_include_directories(DRAMSys_libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_compile_definitions(DRAMSys_libdramsys PUBLIC HBM3_SIM)
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
option(DRAMSYS_EXTENSION_LPDDR5_ENABLE "Enable DRAMSys LPDDR5 Support" ON)
|
||||
|
||||
if(DRAMSYS_EXTENSION_LPDDR5_ENABLE)
|
||||
message(STATUS " * LPDDR5")
|
||||
if(NOT DRAMSYS_EXTENSION_LPDDR5_ENABLE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp)
|
||||
file(GLOB_RECURSE HEADER_FILES CONFIGURE_DEPENDS *.h;*.hpp)
|
||||
message(STATUS " * LPDDR5")
|
||||
|
||||
target_sources(DRAMSys_libdramsys PRIVATE ${SOURCE_FILES} ${HEADER_FILES})
|
||||
target_include_directories(DRAMSys_libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_compile_definitions(DRAMSys_libdramsys PUBLIC LPDDR5_SIM)
|
||||
target_sources(DRAMSys_libdramsys PRIVATE
|
||||
DRAMSys/configuration/memspec/MemSpecLPDDR5.cpp
|
||||
DRAMSys/controller/checker/CheckerLPDDR5.cpp
|
||||
)
|
||||
|
||||
build_source_group()
|
||||
endif()
|
||||
target_include_directories(DRAMSys_libdramsys PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_compile_definitions(DRAMSys_libdramsys PUBLIC LPDDR5_SIM)
|
||||
|
||||
Reference in New Issue
Block a user