Fix UUID v2
This commit is contained in:
parent
b1587adb57
commit
54221eb601
@ -25,7 +25,10 @@ find_package(Threads REQUIRED)
|
|||||||
add_library(mg-utils STATIC ${utils_src_files})
|
add_library(mg-utils STATIC ${utils_src_files})
|
||||||
add_library(mg::utils ALIAS mg-utils)
|
add_library(mg::utils ALIAS mg-utils)
|
||||||
|
|
||||||
|
find_path(LIBUUID_INCLUDE_DIR uuid.h PATH_SUFFIXES uuid)
|
||||||
find_library(LIBUUID_LIBRARY libuuid.a)
|
find_library(LIBUUID_LIBRARY libuuid.a)
|
||||||
|
include_directories(${LIBUUID_INCLUDE_DIR})
|
||||||
|
target_link_libraries(testuuid PUBLIC ${LIBUUID_LIBRARY})
|
||||||
target_link_libraries(mg-utils PUBLIC Boost::headers fmt::fmt spdlog::spdlog json)
|
target_link_libraries(mg-utils PUBLIC Boost::headers fmt::fmt spdlog::spdlog json)
|
||||||
target_link_libraries(mg-utils PRIVATE librdtsc stdc++fs Threads::Threads gflags ${LIBUUID_LIBRARY} rt)
|
target_link_libraries(mg-utils PRIVATE librdtsc stdc++fs Threads::Threads gflags ${LIBUUID_LIBRARY} rt)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user