From e827932cfa08c9bd44078b84aecb94555ebb63d8 Mon Sep 17 00:00:00 2001 From: shareong <740310627@qq.com> Date: Thu, 14 Mar 2024 10:57:12 +0800 Subject: [PATCH] fix uuid --- cmake/CompilerSettings.cmake | 10 ---------- vcpkg-configuration.json | 3 ++- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/cmake/CompilerSettings.cmake b/cmake/CompilerSettings.cmake index fe9b826..17c9e73 100644 --- a/cmake/CompilerSettings.cmake +++ b/cmake/CompilerSettings.cmake @@ -135,16 +135,6 @@ if(("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR("${CMAKE_CXX_COMPILER_ID}" MATC add_compile_options(-fstack-protector) add_compile_options(-Winconsistent-missing-override) add_compile_options(-foptimize-sibling-calls) - - # Some Linux-specific Clang settings. We don't want these for OS X. - if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") - # Tell Boost that we're using Clang's libc++. Not sure exactly why we need to do. - add_definitions(-DBOOST_ASIO_HAS_CLANG_LIBCXX) - # Fix for Boost UUID on old kernel version Linux. See https://github.com/boostorg/uuid/issues/91 - add_definitions(-DBOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX) - # Use fancy colors in the compiler diagnostics - add_compile_options(-fcolor-diagnostics) - endif() endif() if(SANITIZE_ADDRESS) diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json index 7e53a74..4ef7375 100644 --- a/vcpkg-configuration.json +++ b/vcpkg-configuration.json @@ -6,7 +6,8 @@ "baseline": "3765dfb347d9fc820cfad9005b2f87d0755895ec", "packages": [ "tbb", - "boost-beast" + "boost-beast", + "boost-uuid" ] } ]