Fix ODR violation of Dram and DramRecordable
The compiler flag DRAMPower was not propagated to downstream projects, leading to an ODR violation of the classes Dram and DramRecordable
This commit is contained in:
@@ -54,8 +54,8 @@ target_link_libraries(${PROJECT_NAME}
|
||||
)
|
||||
|
||||
if (DRAMSYS_WITH_DRAMPOWER)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE DRAMPower)
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE DRAMPOWER)
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC DRAMPower)
|
||||
target_compile_definitions(${PROJECT_NAME} PUBLIC DRAMPOWER)
|
||||
endif ()
|
||||
|
||||
add_library(DRAMSys::libdramsys ALIAS ${PROJECT_NAME})
|
||||
|
||||
Reference in New Issue
Block a user