Browse Source

Add option USE_LOCKING for single-threaded build with locking support

tags/v0.3.7
Martin Kroeker GitHub 6 years ago
parent
commit
1e52572be3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      cmake/system.cmake

+ 4
- 0
cmake/system.cmake View File

@@ -136,6 +136,10 @@ endif ()


if (USE_THREAD) if (USE_THREAD)
message(STATUS "Multi-threading enabled with ${NUM_THREADS} threads.") message(STATUS "Multi-threading enabled with ${NUM_THREADS} threads.")
else()
if (${USE_LOCKING})
set(CCOMMON_OPT "${CCOMMON_OPT} -DUSE_LOCKING")
endif ()
endif () endif ()


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


Loading…
Cancel
Save