Add option USE_LOCKING for single-threaded build with locking support

This commit is contained in:
Martin Kroeker
2019-05-15 23:19:30 +02:00
committed by GitHub
parent d2cb610272
commit 1e52572be3

View File

@@ -136,6 +136,10 @@ endif ()
if (USE_THREAD)
message(STATUS "Multi-threading enabled with ${NUM_THREADS} threads.")
else()
if (${USE_LOCKING})
set(CCOMMON_OPT "${CCOMMON_OPT} -DUSE_LOCKING")
endif ()
endif ()
include("${PROJECT_SOURCE_DIR}/cmake/prebuild.cmake")