From b3b8330909434ac72bd4148bc06ee808afd55357 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 5 Dec 2016 12:38:09 -0500 Subject: [PATCH] fix(CMakeLists): disable automatic thread finalization in single-threaded builds --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d098ac2755..56e1c59382 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -96,6 +96,7 @@ endif() if(NOT MULTI_THREAD) message(STATUS "Disabled multi-thread support, it will not be safe to run multiple threads in parallel") + set(AUTO_THREAD_FINALIZATION OFF) else() set(LEAN_EXTRA_CXX_FLAGS "${LEAN_EXTRA_CXX_FLAGS} -D LEAN_MULTI_THREAD") endif()