Skip to content

Commit 1e52572

Browse files
authored
Add option USE_LOCKING for single-threaded build with locking support
1 parent d2cb610 commit 1e52572

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/system.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ endif ()
136136

137137
if (USE_THREAD)
138138
message(STATUS "Multi-threading enabled with ${NUM_THREADS} threads.")
139+
else()
140+
if (${USE_LOCKING})
141+
set(CCOMMON_OPT "${CCOMMON_OPT} -DUSE_LOCKING")
142+
endif ()
139143
endif ()
140144

141145
include("${PROJECT_SOURCE_DIR}/cmake/prebuild.cmake")

0 commit comments

Comments
 (0)