Make logvisor publicly link libdl on platforms that have it

This commit is contained in:
Jack Andersen 2019-05-25 00:14:41 -10:00
parent c54e2596c2
commit 7672485d81
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ add_library(logvisor
lib/logvisor.cpp
include/logvisor/logvisor.hpp)
target_link_libraries(logvisor PUBLIC ${CMAKE_DL_LIBS})
set(LOGVISOR_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE PATH "logvisor include path" FORCE)
install(DIRECTORY include/logvisor DESTINATION include)