From efc93eb3d1ec33d9f9357872c70b4044f26e7785 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 7 Sep 2014 22:04:29 +0200 Subject: [PATCH] typos in cmake -DWITH_ATOMIC_OPS=xxx --- configure.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.cmake b/configure.cmake index 7ec87f6e9a8..d16a82a2309 100644 --- a/configure.cmake +++ b/configure.cmake @@ -960,7 +960,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX) IF(WITH_ATOMIC_OPS STREQUAL "up") SET(MY_ATOMIC_MODE_DUMMY 1 CACHE BOOL "Assume single-CPU mode, no concurrency") 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(NOT WITH_ATOMIC_OPS) CHECK_CXX_SOURCE_COMPILES(" @@ -992,12 +992,12 @@ ELSE() ENDIF() ENDIF() -SET(WITH_ATOMIC_LOCKS "${WITH_ATOMIC_LOCKS}" CACHE STRING -"Implement atomic operations using pthread rwlocks or atomic CPU -instructions for multi-processor or uniprocessor +SET(WITH_ATOMIC_OPS "${WITH_ATOMIC_OPS}" CACHE STRING + "Implement atomic operations using pthread rwlocks (rwlocks); or atomic CPU +instructions for multi-processor (smp) or uniprocessor (up) configuration. By default gcc built-in sync functions are used, 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) SET(HAVE_valgrind 1)