fix SystemC lib handling in build system
This commit is contained in:
parent
5ef5d57d30
commit
da819d8890
|
@ -61,7 +61,6 @@ elseif(TARGET elfio::elfio)
|
|||
else()
|
||||
message(FATAL_ERROR "No elfio library found, maybe a find_package() call is missing")
|
||||
endif()
|
||||
#target_link_libraries(${PROJECT_NAME} PUBLIC ${Boost_program_options_LIBRARY} ${Boost_system_LIBRARY} ${Boost_thread_LIBRARY} ${Boost_filesystem_LIBRARY} )
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
FRAMEWORK FALSE
|
||||
|
@ -86,6 +85,12 @@ if(SystemC_FOUND)
|
|||
if(WITH_LLVM)
|
||||
target_link_libraries(${PROJECT_NAME}_sc PUBLIC ${llvm_libs})
|
||||
endif()
|
||||
if(SystemC_INCLUDE_DIRS)
|
||||
target_include_directories (${PROJECT_NAME} PUBLIC ${SystemC_INCLUDE_DIRS})
|
||||
target_link_directories(${PROJECT_NAME} PUBLIC ${SystemC_LIBRARY_DIRS})
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${SystemC_LIBRARIES} )
|
||||
|
||||
set_target_properties(${PROJECT_NAME}_sc PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
FRAMEWORK FALSE
|
||||
|
|
Loading…
Reference in New Issue