diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-13 13:33:32 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-01-13 13:33:32 +0100 |
commit | 7e7965aeb4bea403a39f314ee7efb0662affad6b (patch) | |
tree | 5b12e02088078b76f08f37a93239687d72b97d60 /CMakeLists.txt | |
parent | 3fe740e13d2913e9f5f77325d19eb189209bce88 (diff) | |
download | mariadb-git-7e7965aeb4bea403a39f314ee7efb0662affad6b.tar.gz |
Add WITH_FAST_MUTEXES option (non-debug configurations only)
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-x | CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dafc6b3086..dcc4972fbc0 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,17 +103,22 @@ IF(WITH_ERROR_INJECT) SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DERROR_INJECT_SUPPORT") ENDIF() - - OPTION(ENABLE_LOCAL_INFILE "If we should should enable LOAD DATA LOCAL by default" ${IF_WIN}) MARK_AS_ADVANCED(ENABLE_LOCAL_INFILE) -# Set DBUG_OFF for non-debug project types. +OPTION(WITH_FAST_MUTEXES "Compile with fast mutexes" OFF) +MARK_AS_ADVANCED(WITH_FAST_MUTEXES) + +# Set DBUG_OFF and other optional release-only flags for non-debug project types FOREACH(BUILD_TYPE RELEASE RELWITHDEBINFO MINSIZEREL) FOREACH(LANG C CXX) SET(CMAKE_${LANG}_FLAGS_${BUILD_TYPE} "${CMAKE_${LANG}_FLAGS_${BUILD_TYPE}} -DDBUG_OFF") + IF(WITH_FAST_MUTEXES) + SET(CMAKE_${LANG}_FLAGS_${BUILD_TYPE} + "${CMAKE_${LANG}_FLAGS_${BUILD_TYPE}} -DMY_PTHREAD_FASTMUTEX=1") + ENDIF() ENDFOREACH() ENDFOREACH() |