rwrap: Big bang!
[resolv_wrapper.git] / cmake / Modules / DefineCMakeDefaults.cmake
1 # Always include srcdir and builddir in include path
2 # This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
3 # about every subdir
4 # since cmake 2.4.0
5 set(CMAKE_INCLUDE_CURRENT_DIR ON)
6
7 # Put the include dirs which are in the source or build tree
8 # before all other include dirs, so the headers in the sources
9 # are prefered over the already installed ones
10 # since cmake 2.4.1
11 set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
12
13 # Use colored output
14 # since cmake 2.4.0
15 set(CMAKE_COLOR_MAKEFILE ON)
16
17 # Define the generic version of the libraries here
18 set(GENERIC_LIB_VERSION "0.1.0")
19 set(GENERIC_LIB_SOVERSION "0")
20
21 # Set the default build type to release with debug info
22 if (NOT CMAKE_BUILD_TYPE)
23   set(CMAKE_BUILD_TYPE RelWithDebInfo
24     CACHE STRING
25       "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
26   )
27 endif (NOT CMAKE_BUILD_TYPE)
28
29 # Create the compile command database for clang by default
30 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)