Skip to content

Commit

Permalink
Add option USE_LOCKING for single-threaded build with locking support
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg committed May 15, 2019
1 parent d2cb610 commit 1e52572
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/system.cmake
Expand Up @@ -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")
Expand Down

0 comments on commit 1e52572

Please sign in to comment.