Add option USE_LOCKING for single-threaded build with locking support
This commit is contained in:
parent
d2cb610272
commit
1e52572be3
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue