1 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
2 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
3 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
4 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath
5 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
6 SET(CMAKE_INCLUDE_FLAG_C "-I") # -I
7 SET(CMAKE_INCLUDE_FLAG_C_SEP "") # , or empty
8 SET(CMAKE_LIBRARY_PATH_FLAG "-L")
9 SET(CMAKE_LIBRARY_PATH_TERMINATOR "") # for the Digital Mars D compiler the link paths have to be terminated with a "/"
10 SET(CMAKE_LINK_LIBRARY_FLAG "-l")
12 SET(CMAKE_LINK_LIBRARY_SUFFIX "")
13 SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
14 SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
15 SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
16 SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so") # .so
17 SET(CMAKE_EXECUTABLE_SUFFIX "") # .exe
18 SET(CMAKE_DL_LIBS "dl")
20 SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
21 SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a")
23 # basically all general purpose OSs support shared libs
24 SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
26 SET (CMAKE_SKIP_RPATH "NO" CACHE BOOL
27 "If set, runtime paths are not added when using shared libraries.")
29 SET(CMAKE_INIT_VALUE FALSE)
30 IF(CMAKE_GENERATOR MATCHES "KDevelop3")
31 SET(CMAKE_INIT_VALUE TRUE)
32 ENDIF(CMAKE_GENERATOR MATCHES "KDevelop3")
33 SET(CMAKE_VERBOSE_MAKEFILE ${CMAKE_INIT_VALUE} CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.")
35 IF(CMAKE_GENERATOR MATCHES "Makefiles")
36 SET(CMAKE_COLOR_MAKEFILE ON CACHE BOOL
37 "Enable/Disable color output during build."
39 MARK_AS_ADVANCED(CMAKE_COLOR_MAKEFILE)
40 ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
42 # Set a variable to indicate whether the value of CMAKE_INSTALL_PREFIX
43 # was initialized by the block below. This is useful for user
44 # projects to change the default prefix while still allowing the
45 # command line to override it.
46 IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
47 SET(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT 1)
48 ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
50 # Choose a default install prefix for this platform.
52 SET(CMAKE_INSTALL_PREFIX "/usr/local"
53 CACHE PATH "Install path prefix, prepended onto install directories.")
55 IF("$ENV{ProgramFiles}" MATCHES "^$")
56 IF("$ENV{SystemDrive}" MATCHES "^$")
57 SET(CMAKE_GENERIC_PROGRAM_FILES "C:/Program Files")
58 ELSE("$ENV{SystemDrive}" MATCHES "^$")
59 SET(CMAKE_GENERIC_PROGRAM_FILES "$ENV{SystemDrive}/Program Files")
60 ENDIF("$ENV{SystemDrive}" MATCHES "^$")
61 ELSE("$ENV{ProgramFiles}" MATCHES "^$")
62 SET(CMAKE_GENERIC_PROGRAM_FILES "$ENV{ProgramFiles}")
63 ENDIF("$ENV{ProgramFiles}" MATCHES "^$")
64 SET(CMAKE_INSTALL_PREFIX
65 "${CMAKE_GENERIC_PROGRAM_FILES}/${PROJECT_NAME}"
66 CACHE PATH "Install path prefix, prepended onto install directories.")
67 SET(CMAKE_GENERIC_PROGRAM_FILES)
69 # Make sure the prefix uses forward slashes.
70 STRING(REGEX REPLACE "\\\\" "/"
71 CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
72 ENDIF(CMAKE_HOST_UNIX)
76 CMAKE_VERBOSE_MAKEFILE
79 # always include the gcc compiler information