diff --git a/AVSCommon/Utils/src/UUIDGeneration.cpp b/AVSCommon/Utils/src/UUIDGeneration.cpp index 0579398d..3bb710c3 100644 --- a/AVSCommon/Utils/src/UUIDGeneration.cpp +++ b/AVSCommon/Utils/src/UUIDGeneration.cpp @@ -183,7 +183,7 @@ static void addDefaultSeedLocked() { seedsPool.push_front((uint32_t)timeSeed); // lower 32bits of current time seedsPool.push_front(rd()); // random device seedsPool.push_front( - reinterpret_cast(&timeSeed)); // lower 32bits of memory address of temporary variable + reinterpret_cast(&timeSeed)); // lower 32bits of memory address of temporary variable if (seedsPool.size() > MAX_SEEDS_POOL_SIZE) { seedsPool.resize(MAX_SEEDS_POOL_SIZE); diff --git a/CMakeLists.txt b/CMakeLists.txt index a49a5c5b..1a740bea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,15 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR) project(AlexaClientSDK VERSION 1.26.0 LANGUAGES CXX) set(PROJECT_BRIEF "A cross-platform, modular SDK for interacting with the Alexa Voice Service") +set(CMAKE_THREAD_LIBS_INIT "-lpthread") +set(CMAKE_HAVE_THREADS_LIBRARY 1) +set(CMAKE_USE_WIN32_THREADS_INIT 0) +set(CMAKE_USE_PTHREADS_INIT 1) +set(THREADS_PREFER_PTHREAD_FLAG ON) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") + + # This variable should be used by extension packages to include cmake files from this project. get_filename_component(AVS_CORE . ABSOLUTE) get_filename_component(AVS_CORE_BINARY ${PROJECT_BINARY_DIR} ABSOLUTE)