diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 5b5d9db..ed2143d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -14,5 +14,9 @@ set(CORE_SOURCES add_library(core STATIC ${CORE_SOURCES}) target_link_libraries(core Boost::boost Boost::date_time) -target_link_libraries(core sqlite3) +if (WIN32) + target_link_libraries(core sqlite3 bcrypt) +else() + target_link_libraries(core sqlite3) +endif() target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file diff --git a/src/core/entity.cpp b/src/core/entity.cpp index 53c5142..8caa834 100644 --- a/src/core/entity.cpp +++ b/src/core/entity.cpp @@ -9,11 +9,7 @@ Entity::~Entity() = default; void Entity::createUuid() { - #if defined __linux__ static boost::uuids::random_generator generator{}; - #elif defined __WIN32 - static boost::uuids::random_generator_mt19937 generator{}; - #endif uuid_ = generator(); }