mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Use CMAKE_DL_LIBS for dl dependency
This commit is contained in:
parent
ae1db280ea
commit
94954b865e
@ -24,14 +24,14 @@ target_include_directories(coz
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include/coz>)
|
||||
target_link_libraries(coz PUBLIC dl rt Threads::Threads libelfin::libelfin)
|
||||
target_link_libraries(coz PRIVATE ${CMAKE_DL_LIBS} rt Threads::Threads libelfin::libelfin)
|
||||
|
||||
add_library(coz-instrumentation INTERFACE)
|
||||
target_include_directories(coz-instrumentation
|
||||
INTERFACE
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include/coz>)
|
||||
target_link_libraries(coz-instrumentation INTERFACE -Wl,--push-state,--no-as-needed -ldl -Wl,--pop-state)
|
||||
target_link_libraries(coz-instrumentation INTERFACE -Wl,--push-state,--no-as-needed ${CMAKE_DL_LIBS} -Wl,--pop-state)
|
||||
|
||||
if(INSTALL_COZ)
|
||||
install(TARGETS coz
|
||||
|
Loading…
Reference in New Issue
Block a user