Skip to content

Commit da9bb66

Browse files
committed
cmake GUI cleanup
mark path-related variables (AIO_LIBRARY, ODBC_LIBRARY, ODBC_INCLUDE_DIR, Thrift_LIBS, Thrift_INCLUDE_DIRS, CRYPTO_LIBRARY, OPENSSL_LIBRARIES, OPENSSL_ROOT_DIR, OPENSSL_INCLUDE_DIR) as advanced - paths are automatically discovered by cmake. mark few choice variables (ENABLED_LOCAL_INFILE, WITHOUT_SERVER, DISABLE_SHARED) as not advanced - they are user choices, not automatically configured values. remove unused BACKUP_TEST variable.
1 parent 242e7f9 commit da9bb66

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ ENDIF()
114114
INCLUDE(maintainer)
115115

116116
SET(MYSQL_MAINTAINER_MODE "OFF" CACHE STRING "MySQL maintainer-specific development environment. Options are: ON OFF AUTO.")
117-
MARK_AS_ADVANCED(MYSQL_MAINTAINER_MODE)
118117

119118
# Whether the maintainer mode compiler options should be enabled.
120119
IF(CMAKE_C_COMPILER_ID MATCHES "GNU")
@@ -168,13 +167,12 @@ IF(DISABLE_SHARED)
168167
ENDIF()
169168
OPTION(ENABLED_PROFILING "Enable profiling" ON)
170169
OPTION(CYBOZU "" OFF)
171-
OPTION(BACKUP_TEST "" OFF)
172-
OPTION(WITHOUT_SERVER OFF)
170+
OPTION(WITHOUT_SERVER "Build only the client library and clients" OFF)
173171
IF(UNIX)
174172
OPTION(WITH_VALGRIND "Valgrind instrumentation" OFF)
175173
ENDIF()
176174
OPTION (WITH_UNIT_TESTS "Compile MySQL with unit tests" ON)
177-
MARK_AS_ADVANCED(CYBOZU BACKUP_TEST WITHOUT_SERVER DISABLE_SHARED)
175+
MARK_AS_ADVANCED(CYBOZU)
178176

179177
OPTION(NOT_FOR_DISTRIBUTION "Allow linking with GPLv2-incompatible system libraries. Only set it you never plan to distribute the resulting binaries" OFF)
180178

@@ -272,7 +270,6 @@ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3")
272270

273271
OPTION(ENABLED_LOCAL_INFILE
274272
"If we should should enable LOAD DATA LOCAL by default" ${IF_WIN})
275-
MARK_AS_ADVANCED(ENABLED_LOCAL_INFILE)
276273

277274
OPTION(WITH_FAST_MUTEXES "Compile with fast mutexes" OFF)
278275
MARK_AS_ADVANCED(WITH_FAST_MUTEXES)

cmake/ssl.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ MACRO (MYSQL_CHECK_SSL)
152152
FIND_LIBRARY(CRYPTO_LIBRARY
153153
NAMES crypto libeay32
154154
HINTS ${OPENSSL_ROOT_DIR}/lib)
155+
MARK_AS_ADVANCED(CRYPTO_LIBRARY OPENSSL_LIBRARIES OPENSSL_ROOT_DIR
156+
OPENSSL_INCLUDE_DIR)
155157
IF (WITH_SSL_PATH)
156158
LIST(REVERSE CMAKE_FIND_LIBRARY_SUFFIXES)
157159
ENDIF()

config.h.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@
526526
#cmakedefine ENABLED_LOCAL_INFILE 1
527527
#cmakedefine ENABLED_PROFILING 1
528528
#cmakedefine EXTRA_DEBUG 1
529-
#cmakedefine BACKUP_TEST 1
530529
#cmakedefine CYBOZU 1
531530
#cmakedefine USE_SYMDIR 1
532531

storage/cassandra/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ ${Thrift_INCLUDE_DIR} # this may be set
1212
# Verify that thrift linking library is found
1313
SET(Thrift_LIB_PATHS ${Thrift_LIB_PATHS} /usr/local/lib /opt/local/lib /opt/lib)
1414
FIND_LIBRARY(Thrift_LIBS NAMES thrift PATHS ${Thrift_LIB_PATHS} ${Thrift_LIB})
15+
16+
MARK_AS_ADVANCED(Thrift_LIBS Thrift_INCLUDE_DIRS)
17+
1518
IF(EXISTS ${Thrift_LIBS})
1619
GET_FILENAME_COMPONENT(LINK_DIR ${Thrift_LIBS} PATH ABSOLUTE)
1720
ELSE()

storage/connect/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ IF(CONNECT_WITH_ODBC)
232232
DOC "Specify the ODBC driver manager library here."
233233
)
234234

235+
mark_as_advanced(ODBC_LIBRARY ODBC_INCLUDE_DIR)
236+
235237
IF(ODBC_INCLUDE_DIR AND ODBC_LIBRARY)
236238
set(CMAKE_REQUIRED_LIBRARIES ${ODBC_LIBRARY})
237239
set(CMAKE_REQUIRED_INCLUDES ${ODBC_INCLUDE_DIR})

storage/xtradb/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ IF(UNIX)
3232
SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
3333
ENDIF()
3434
FIND_LIBRARY(AIO_LIBRARY aio)
35+
MARK_AS_ADVANCED(AIO_LIBRARY)
3536
IF(AIO_LIBRARY)
3637
CHECK_LIBRARY_EXISTS(${AIO_LIBRARY} io_queue_init "" HAVE_LIBAIO)
3738
IF(HAVE_LIBAIO AND HAVE_LIBAIO_H)

0 commit comments

Comments
 (0)