fix bcrypt issue
This commit is contained in:
parent
2cc7a288fe
commit
7d405234d4
2 changed files with 5 additions and 5 deletions
|
@ -14,5 +14,9 @@ set(CORE_SOURCES
|
||||||
|
|
||||||
add_library(core STATIC ${CORE_SOURCES})
|
add_library(core STATIC ${CORE_SOURCES})
|
||||||
target_link_libraries(core Boost::boost Boost::date_time)
|
target_link_libraries(core Boost::boost Boost::date_time)
|
||||||
|
if (WIN32)
|
||||||
|
target_link_libraries(core sqlite3 bcrypt)
|
||||||
|
else()
|
||||||
target_link_libraries(core sqlite3)
|
target_link_libraries(core sqlite3)
|
||||||
|
endif()
|
||||||
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
@ -9,11 +9,7 @@ Entity::~Entity() = default;
|
||||||
|
|
||||||
void Entity::createUuid()
|
void Entity::createUuid()
|
||||||
{
|
{
|
||||||
#if defined __linux__
|
|
||||||
static boost::uuids::random_generator generator{};
|
static boost::uuids::random_generator generator{};
|
||||||
#elif defined __WIN32
|
|
||||||
static boost::uuids::random_generator_mt19937 generator{};
|
|
||||||
#endif
|
|
||||||
uuid_ = generator();
|
uuid_ = generator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue