typos in cmake -DWITH_ATOMIC_OPS=xxx
This commit is contained in:
parent
0835f57489
commit
efc93eb3d1
@ -960,7 +960,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
IF(WITH_ATOMIC_OPS STREQUAL "up")
|
IF(WITH_ATOMIC_OPS STREQUAL "up")
|
||||||
SET(MY_ATOMIC_MODE_DUMMY 1 CACHE BOOL "Assume single-CPU mode, no concurrency")
|
SET(MY_ATOMIC_MODE_DUMMY 1 CACHE BOOL "Assume single-CPU mode, no concurrency")
|
||||||
ELSEIF(WITH_ATOMIC_OPS STREQUAL "rwlocks")
|
ELSEIF(WITH_ATOMIC_OPS STREQUAL "rwlocks")
|
||||||
SET(MY_ATOMIC_MODE_RWLOCK 1 CACHE BOOL "Use pthread rwlocks for atomic ops")
|
SET(MY_ATOMIC_MODE_RWLOCKS 1 CACHE BOOL "Use pthread rwlocks for atomic ops")
|
||||||
ELSEIF(WITH_ATOMIC_OPS STREQUAL "smp")
|
ELSEIF(WITH_ATOMIC_OPS STREQUAL "smp")
|
||||||
ELSEIF(NOT WITH_ATOMIC_OPS)
|
ELSEIF(NOT WITH_ATOMIC_OPS)
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
@ -992,12 +992,12 @@ ELSE()
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(WITH_ATOMIC_LOCKS "${WITH_ATOMIC_LOCKS}" CACHE STRING
|
SET(WITH_ATOMIC_OPS "${WITH_ATOMIC_OPS}" CACHE STRING
|
||||||
"Implement atomic operations using pthread rwlocks or atomic CPU
|
"Implement atomic operations using pthread rwlocks (rwlocks); or atomic CPU
|
||||||
instructions for multi-processor or uniprocessor
|
instructions for multi-processor (smp) or uniprocessor (up)
|
||||||
configuration. By default gcc built-in sync functions are used,
|
configuration. By default gcc built-in sync functions are used,
|
||||||
if available and 'smp' configuration otherwise.")
|
if available and 'smp' configuration otherwise.")
|
||||||
MARK_AS_ADVANCED(WITH_ATOMIC_LOCKS MY_ATOMIC_MODE_RWLOCK MY_ATOMIC_MODE_DUMMY)
|
MARK_AS_ADVANCED(WITH_ATOMIC_OPS MY_ATOMIC_MODE_RWLOCK MY_ATOMIC_MODE_DUMMY)
|
||||||
|
|
||||||
IF(WITH_VALGRIND)
|
IF(WITH_VALGRIND)
|
||||||
SET(HAVE_valgrind 1)
|
SET(HAVE_valgrind 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user