fix(CMakeLists): disable automatic thread finalization in single-threaded builds

This commit is contained in:
Gabriel Ebner 2016-12-05 12:38:09 -05:00
parent c77a987b4d
commit b3b8330909

View file

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