diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-10-21 14:12:23 +0200 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-10-21 14:12:23 +0200 |
commit | 8069325f59abad06e72d9c807aa44f99810cabe5 (patch) | |
tree | c9d96ee8475623a8f44eb9cf3f73d5c723f470dd /CMakeLists.txt | |
parent | 9c2c4648059ef6eca48e3c2c953cb17470445c8a (diff) | |
parent | a52ea672a00d0d8b0404b33aaeaa66704d20c73e (diff) | |
download | mariadb-git-8069325f59abad06e72d9c807aa44f99810cabe5.tar.gz |
merge
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f6a95317260..5c349813f68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,11 @@ IF(WITH_DEBUG) SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING ${BUILDTYPE_DOCSTRING} FORCE) SET(MYSQL_MAINTAINER_MODE ON CACHE BOOL "MySQL maintainer-specific development environment") + IF(UNIX AND NOT APPLE) + # Compiling with PIC speeds up embedded build, on PIC sensitive systems + # Predefine it to ON, in case user chooses to build embedded. + SET(WITH_PIC ON CACHE BOOL "Compile with PIC") + ENDIF() SET(OLD_WITH_DEBUG 1 CACHE INTERNAL "" FORCE) ELSEIF(NOT HAVE_CMAKE_BUILD_TYPE OR OLD_WITH_DEBUG) IF(CUSTOM_C_FLAGS) |