fix bcrypt issue

This commit is contained in:
Martin Brodbeck 2018-08-01 11:27:13 +02:00
parent 2cc7a288fe
commit 7d405234d4
2 changed files with 5 additions and 5 deletions

View File

@ -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})

View File

@ -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();
}