summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-10-02 16:37:43 +0200
committerAndreas Schneider <asn@samba.org>2018-10-23 15:38:33 +0200
commit567261810523f2ab3af10268fc4a64d863ce2c93 (patch)
treefbdd1c2067a1d60ff7c791030bec0a764a647e4b
parenta5df8fc8f5f22ba561a39b3eb752766cb62d7f71 (diff)
downloadsocket_wrapper-567261810523f2ab3af10268fc4a64d863ce2c93.tar.gz
socket_wrapper-567261810523f2ab3af10268fc4a64d863ce2c93.tar.xz
socket_wrapper-567261810523f2ab3af10268fc4a64d863ce2c93.zip
cmake: Update CMake defaults
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--cmake/Modules/DefineCMakeDefaults.cmake15
1 files changed, 3 insertions, 12 deletions
diff --git a/cmake/Modules/DefineCMakeDefaults.cmake b/cmake/Modules/DefineCMakeDefaults.cmake
index a6cd47e..6f369fa 100644
--- a/cmake/Modules/DefineCMakeDefaults.cmake
+++ b/cmake/Modules/DefineCMakeDefaults.cmake
@@ -14,17 +14,8 @@ set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
# since cmake 2.4.0
set(CMAKE_COLOR_MAKEFILE ON)
-# Define the generic version of the libraries here
-set(GENERIC_LIB_VERSION "0.1.0")
-set(GENERIC_LIB_SOVERSION "0")
-
-# Set the default build type to release with debug info
-if (NOT CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE RelWithDebInfo
- CACHE STRING
- "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
- )
-endif (NOT CMAKE_BUILD_TYPE)
-
# Create the compile command database for clang by default
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
+# Always build with -fPIC
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)