fix(CMakeLists): disable automatic thread finalization in single-threaded builds
This commit is contained in:
parent
c77a987b4d
commit
b3b8330909
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue