2002-10-22 18:34:07 +04:00
# this module sets system information like how to build libraries
# before including this file the system, C, and C++ compilers must
# have already been determined.
# This file first sets default variables that can be used for most
# makefiles. Next, it will include a system specific file. Finally,
# it will optionally include a system and compiler specific file that
# can be used to override any of this information.
2002-10-24 00:53:53 +04:00
# For debugging new systems, and expert users, if the
# CMAKE_USER_MAKE_RULES_OVERRIDE is set to a file name, that
# file will be included last, and can override any variable
2002-10-22 18:34:07 +04:00
# 1. set default values that will work for most system
2002-11-08 23:46:08 +03:00
# suffix that needs to be added onto a library to link it .lib on windows
# not used on most unix systems
SET ( CMAKE_LINK_LIBRARY_SUFFIX "" )
2002-10-24 00:53:53 +04:00
SET ( CMAKE_STATIC_LIBRARY_PREFIX "lib" )
SET ( CMAKE_STATIC_LIBRARY_SUFFIX ".a" )
2002-10-22 23:04:52 +04:00
SET ( CMAKE_SHARED_LIBRARY_PREFIX "lib" ) # lib
SET ( CMAKE_SHARED_LIBRARY_SUFFIX ".so" ) # .so
2002-11-08 23:46:08 +03:00
SET ( CMAKE_DL_LIBS "-ldl" )
SET ( CMAKE_SHARED_LIBRARY_C_FLAGS "" ) # -pic
SET ( CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared" ) # -shared
2002-10-24 00:53:53 +04:00
SET ( CMAKE_SHARED_LIBRARY_LINK_FLAGS "" ) # +s, flag for exe link to use shared lib
2002-10-22 23:04:52 +04:00
SET ( CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "" ) # -rpath
SET ( CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP "" ) # : or empty
2002-10-24 00:53:53 +04:00
SET ( CMAKE_LIBRARY_PATH_FLAG "-L" )
SET ( CMAKE_LINK_LIBRARY_FLAG "-l" )
2004-08-18 17:28:41 +04:00
IF ( CMAKE_COMPILER_IS_GNUCC )
2002-10-22 23:04:52 +04:00
SET ( CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC" ) # -pic
2004-08-18 17:28:41 +04:00
ENDIF ( CMAKE_COMPILER_IS_GNUCC )
IF ( CMAKE_COMPILER_IS_GNUCXX )
2002-10-22 23:04:52 +04:00
SET ( CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC" ) # -pic
2002-11-08 23:46:08 +03:00
ENDIF ( CMAKE_COMPILER_IS_GNUCXX )
2002-10-22 23:04:52 +04:00
SET ( CMAKE_SKIP_RPATH "NO" CACHE BOOL
" I f s e t , r u n t i m e p a t h s a r e n o t a d d e d w h e n u s i n g s h a r e d l i b r a r i e s . " )
2002-11-08 23:46:08 +03:00
MARK_AS_ADVANCED ( CMAKE_SKIP_RPATH )
2002-10-22 18:34:07 +04:00
# 2. now include SystemName.cmake file to set the system specific information
2002-11-08 23:46:08 +03:00
SET ( CMAKE_SYSTEM_INFO_FILE ${ CMAKE_ROOT } /Modules/Platform/ ${ CMAKE_SYSTEM_NAME } .cmake )
2002-10-22 18:34:07 +04:00
IF ( EXISTS ${ CMAKE_SYSTEM_INFO_FILE } )
INCLUDE ( ${ CMAKE_SYSTEM_INFO_FILE } )
ELSE ( EXISTS ${ CMAKE_SYSTEM_INFO_FILE } )
MESSAGE ( "System is unknown to cmake, create:\n${CMAKE_SYSTEM_INFO_FILE}"
" t o u s e t h i s s y s t e m , p l e a s e s e n d y o u r c o n f i g f i l e t o "
2003-01-30 22:34:16 +03:00
" c m a k e @ w w w . c m a k e . o r g s o i t c a n b e a d d e d t o c m a k e " )
2002-12-17 22:54:25 +03:00
IF ( EXISTS ${ CMAKE_BINARY_DIR } /CMakeCache.txt )
CONFIGURE_FILE ( ${ CMAKE_BINARY_DIR } /CMakeCache.txt
$ { C M A K E _ B I N A R Y _ D I R } / C o p y O f C M a k e C a c h e . t x t C O P Y O N L Y )
2002-11-18 18:51:21 +03:00
MESSAGE ( "You CMakeCache.txt file was copied to CopyOfCMakeCache.txt. "
" P l e a s e s e n d t h a t f i l e t o c m a k e @ w w w . c m a k e . o r g . " )
2002-12-17 22:54:25 +03:00
ENDIF ( EXISTS ${ CMAKE_BINARY_DIR } /CMakeCache.txt )
2002-10-22 18:34:07 +04:00
ENDIF ( EXISTS ${ CMAKE_SYSTEM_INFO_FILE } )
# 3. include optional systemname-compiler.cmake files
IF ( CMAKE_C_COMPILER )
2002-10-24 00:53:53 +04:00
GET_FILENAME_COMPONENT ( CMAKE_BASE_NAME ${ CMAKE_C_COMPILER } NAME_WE )
# since the gnu compiler has several names force gcc
2003-08-22 00:22:23 +04:00
IF ( CMAKE_COMPILER_IS_GNUCC )
2002-10-24 00:53:53 +04:00
SET ( CMAKE_BASE_NAME gcc )
2003-08-22 00:22:23 +04:00
ENDIF ( CMAKE_COMPILER_IS_GNUCC )
2002-10-25 22:08:17 +04:00
SET ( CMAKE_SYSTEM_AND_C_COMPILER_INFO_FILE
2002-11-08 23:46:08 +03:00
$ { C M A K E _ R O O T } / M o d u l e s / P l a t f o r m / $ { C M A K E _ S Y S T E M _ N A M E } - $ { C M A K E _ B A S E _ N A M E } . c m a k e )
2002-10-24 00:53:53 +04:00
INCLUDE ( ${ CMAKE_SYSTEM_AND_C_COMPILER_INFO_FILE } OPTIONAL )
2002-10-22 18:34:07 +04:00
ENDIF ( CMAKE_C_COMPILER )
IF ( CMAKE_CXX_COMPILER )
2002-10-24 00:53:53 +04:00
GET_FILENAME_COMPONENT ( CMAKE_BASE_NAME ${ CMAKE_CXX_COMPILER } NAME_WE )
2004-07-27 00:59:55 +04:00
# since the gnu compiler has several names force g++
2002-11-08 23:46:08 +03:00
IF ( CMAKE_COMPILER_IS_GNUCXX )
2002-10-24 00:53:53 +04:00
SET ( CMAKE_BASE_NAME g++ )
2002-11-08 23:46:08 +03:00
ENDIF ( CMAKE_COMPILER_IS_GNUCXX )
2002-10-25 22:08:17 +04:00
SET ( CMAKE_SYSTEM_AND_CXX_COMPILER_INFO_FILE
2002-11-08 23:46:08 +03:00
$ { C M A K E _ R O O T } / M o d u l e s / P l a t f o r m / $ { C M A K E _ S Y S T E M _ N A M E } - $ { C M A K E _ B A S E _ N A M E } . c m a k e )
2002-10-24 00:53:53 +04:00
INCLUDE ( ${ CMAKE_SYSTEM_AND_CXX_COMPILER_INFO_FILE } OPTIONAL )
2002-10-22 18:34:07 +04:00
ENDIF ( CMAKE_CXX_COMPILER )
2002-10-24 00:53:53 +04:00
# for most systems a module is the same as a shared library
# so unless the variable CMAKE_MODULE_EXISTS is set just
# copy the values from the LIBRARY variables
IF ( NOT CMAKE_MODULE_EXISTS )
2002-11-12 02:10:30 +03:00
SET ( CMAKE_SHARED_MODULE_C_FLAGS ${ CMAKE_SHARED_LIBRARY_C_FLAGS } )
2002-10-24 00:53:53 +04:00
SET ( CMAKE_SHARED_MODULE_CXX_FLAGS ${ CMAKE_SHARED_LIBRARY_CXX_FLAGS } )
2002-11-08 23:46:08 +03:00
SET ( CMAKE_SHARED_MODULE_CREATE_C_FLAGS ${ CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS } )
2002-10-24 00:53:53 +04:00
SET ( CMAKE_SHARED_MODULE_PREFIX ${ CMAKE_SHARED_LIBRARY_PREFIX } )
SET ( CMAKE_SHARED_MODULE_SUFFIX ${ CMAKE_SHARED_LIBRARY_SUFFIX } )
SET ( CMAKE_SHARED_MODULE_LINK_FLAGS ${ CMAKE_SHARED_LIBRARY_LINK_FLAGS } )
SET ( CMAKE_SHARED_MODULE_RUNTIME_FLAG ${ CMAKE_SHARED_LIBRARY_RUNTIME_FLAG } )
2002-11-21 16:12:19 +03:00
SET ( CMAKE_SHARED_MODULE_RUNTIME_FLAG_SEP ${ CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP } )
2002-10-24 00:53:53 +04:00
ENDIF ( NOT CMAKE_MODULE_EXISTS )
2002-11-08 23:46:08 +03:00
2002-11-11 20:31:46 +03:00
# Create a set of shared library variable specific to C++
# For 90% of the systems, these are the same flags as the C versions
# so if these are not set just copy the flags from the c version
2002-11-08 23:46:08 +03:00
IF ( NOT CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS )
SET ( CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS ${ CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS )
IF ( NOT CMAKE_SHARED_LIBRARY_CXX_FLAGS )
SET ( CMAKE_SHARED_LIBRARY_CXX_FLAGS ${ CMAKE_SHARED_LIBRARY_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_CXX_FLAGS )
IF ( NOT CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS )
SET ( CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS ${ CMAKE_SHARED_LIBRARY_LINK_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS )
IF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG )
SET ( CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG ${ CMAKE_SHARED_LIBRARY_RUNTIME_FLAG } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG )
IF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP )
SET ( CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ${ CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP )
2002-11-11 20:31:46 +03:00
# repeat for modules
IF ( NOT CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS )
SET ( CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS ${ CMAKE_SHARED_MODULE_CREATE_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS )
IF ( NOT CMAKE_SHARED_MODULE_CXX_FLAGS )
SET ( CMAKE_SHARED_MODULE_CXX_FLAGS ${ CMAKE_SHARED_MODULE_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_MODULE_CXX_FLAGS )
IF ( NOT CMAKE_SHARED_MODULE_LINK_CXX_FLAGS )
SET ( CMAKE_SHARED_MODULE_LINK_CXX_FLAGS ${ CMAKE_SHARED_MODULE_LINK_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_MODULE_LINK_CXX_FLAGS )
IF ( NOT CMAKE_SHARED_MODULE_RUNTIME_CXX_FLAG )
SET ( CMAKE_SHARED_MODULE_RUNTIME_CXX_FLAG ${ CMAKE_SHARED_MODULE_RUNTIME_FLAG } )
ENDIF ( NOT CMAKE_SHARED_MODULE_RUNTIME_CXX_FLAG )
IF ( NOT CMAKE_SHARED_MODULE_RUNTIME_CXX_FLAG_SEP )
SET ( CMAKE_SHARED_MODULE_RUNTIME_CXX_FLAG_SEP ${ CMAKE_SHARED_MODULE_RUNTIME_FLAG_SEP } )
ENDIF ( NOT CMAKE_SHARED_MODULE_RUNTIME_CXX_FLAG_SEP )
2002-11-08 23:46:08 +03:00
2004-08-06 22:51:41 +04:00
# Create a set of shared library variable specific to Fortran
# For 90% of the systems, these are the same flags as the C versions
# so if these are not set just copy the flags from the c version
IF ( NOT CMAKE_SHARED_LIBRARY_CREATE_FORTRAN_FLAGS )
SET ( CMAKE_SHARED_LIBRARY_CREATE_FORTRAN_FLAGS ${ CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_CREATE_FORTRAN_FLAGS )
IF ( NOT CMAKE_SHARED_LIBRARY_FORTRAN_FLAGS )
SET ( CMAKE_SHARED_LIBRARY_FORTRAN_FLAGS ${ CMAKE_SHARED_LIBRARY_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_FORTRAN_FLAGS )
IF ( NOT CMAKE_SHARED_LIBRARY_LINK_FORTRAN_FLAGS )
SET ( CMAKE_SHARED_LIBRARY_LINK_FORTRAN_FLAGS ${ CMAKE_SHARED_LIBRARY_LINK_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_LINK_FORTRAN_FLAGS )
IF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_FORTRAN_FLAG )
SET ( CMAKE_SHARED_LIBRARY_RUNTIME_FORTRAN_FLAG ${ CMAKE_SHARED_LIBRARY_RUNTIME_FLAG } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_FORTRAN_FLAG )
IF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_FORTRAN_FLAG_SEP )
SET ( CMAKE_SHARED_LIBRARY_RUNTIME_FORTRAN_FLAG_SEP ${ CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP } )
ENDIF ( NOT CMAKE_SHARED_LIBRARY_RUNTIME_FORTRAN_FLAG_SEP )
# repeat for modules
IF ( NOT CMAKE_SHARED_MODULE_CREATE_FORTRAN_FLAGS )
SET ( CMAKE_SHARED_MODULE_CREATE_FORTRAN_FLAGS ${ CMAKE_SHARED_MODULE_CREATE_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_MODULE_CREATE_FORTRAN_FLAGS )
IF ( NOT CMAKE_SHARED_MODULE_FORTRAN_FLAGS )
SET ( CMAKE_SHARED_MODULE_FORTRAN_FLAGS ${ CMAKE_SHARED_MODULE_C_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_MODULE_FORTRAN_FLAGS )
IF ( NOT CMAKE_SHARED_MODULE_LINK_FORTRAN_FLAGS )
SET ( CMAKE_SHARED_MODULE_LINK_FORTRAN_FLAGS ${ CMAKE_SHARED_MODULE_LINK_FLAGS } )
ENDIF ( NOT CMAKE_SHARED_MODULE_LINK_FORTRAN_FLAGS )
IF ( NOT CMAKE_SHARED_MODULE_RUNTIME_FORTRAN_FLAG )
SET ( CMAKE_SHARED_MODULE_RUNTIME_FORTRAN_FLAG ${ CMAKE_SHARED_MODULE_RUNTIME_FLAG } )
ENDIF ( NOT CMAKE_SHARED_MODULE_RUNTIME_FORTRAN_FLAG )
IF ( NOT CMAKE_SHARED_MODULE_RUNTIME_FORTRAN_FLAG_SEP )
SET ( CMAKE_SHARED_MODULE_RUNTIME_FORTRAN_FLAG_SEP ${ CMAKE_SHARED_MODULE_RUNTIME_FLAG_SEP } )
ENDIF ( NOT CMAKE_SHARED_MODULE_RUNTIME_FORTRAN_FLAG_SEP )
2002-10-24 00:53:53 +04:00
# include default rules that work for most unix like systems and compilers
# this file will not set anything if it is already set
INCLUDE ( ${ CMAKE_ROOT } /Modules/CMakeDefaultMakeRuleVariables.cmake )
IF ( CMAKE_USER_MAKE_RULES_OVERRIDE )
INCLUDE ( ${ CMAKE_USER_MAKE_RULES_OVERRIDE } )
ENDIF ( CMAKE_USER_MAKE_RULES_OVERRIDE )
2002-11-08 23:46:08 +03:00
2004-04-23 21:12:33 +04:00
SET ( CMAKE_VERBOSE_MAKEFILE FALSE 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." )
2002-11-15 18:07:38 +03:00
SET ( CMAKE_INSTALL_PREFIX /usr/local CACHE PATH
" I n s t a l l p a t h p r e f i x , p r e p e n d e d o n t o i n s t a l l d i r e c t o r i e s . " )
2002-11-11 20:31:46 +03:00
# add the flags to the cache based
# on the initial values computed in the platform/*.cmake files
# use _INIT variables so that this only happens the first time
# and you can set these flags in the cmake cache
2002-11-20 02:17:17 +03:00
SET ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_ENV_INIT} $ENV{CXXFLAGS} ${CMAKE_CXX_FLAGS_INIT}" CACHE STRING
2002-11-09 02:06:53 +03:00
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g a l l b u i l d t y p e s . " )
2002-12-05 21:44:11 +03:00
2002-11-20 02:17:17 +03:00
SET ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS_ENV_INIT} $ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}" CACHE STRING
2002-11-09 02:06:53 +03:00
" F l a g s f o r C c o m p i l e r . " )
2004-08-06 22:51:41 +04:00
SET ( CMAKE_FORTRAN_FLAGS "${CMAKE_FORTRAN_FLAGS_ENV_INIT} $ENV{FFLAGS} ${CMAKE_FORTRAN_FLAGS_INIT}" CACHE STRING
" F l a g s f o r F o r t r a n c o m p i l e r . " )
2003-05-23 17:35:04 +04:00
SET ( CMAKE_EXE_LINKER_FLAGS ${ CMAKE_EXE_LINKER_FLAGS_INIT } $ENV{ LDFLAGS }
2002-11-12 02:10:30 +03:00
C A C H E S T R I N G " F l a g s u s e d b y t h e l i n k e r . " )
2002-12-05 21:44:11 +03:00
IF ( NOT CMAKE_NOT_USING_CONFIG_FLAGS )
# default build type is none
IF ( NOT CMAKE_NO_BUILD_TYPE )
SET ( CMAKE_BUILD_TYPE ${ CMAKE_BUILD_TYPE_INIT } CACHE STRING
" C h o o s e t h e t y p e o f b u i l d , o p t i o n s a r e : None ( CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used ) D e b u g R e l e a s e R e l W i t h D e b I n f o M i n S i z e R e l . " )
ENDIF ( NOT CMAKE_NO_BUILD_TYPE )
SET ( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g d e b u g b u i l d s . " )
SET ( CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g r e l e a s e m i n s i z e b u i l d s . " )
SET ( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g r e l e a s e builds ( /MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files ) . " )
SET ( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g R e l e a s e w i t h D e b u g I n f o b u i l d s . " )
SET ( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g d e b u g b u i l d s . " )
SET ( CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g r e l e a s e m i n s i z e b u i l d s . " )
SET ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g r e l e a s e builds ( /MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files ) . " )
SET ( CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO_INIT}" CACHE STRING
" F l a g s u s e d b y t h e c o m p i l e r d u r i n g R e l e a s e w i t h D e b u g I n f o b u i l d s . " )
SET ( CMAKE_EXE_LINKER_FLAGS_DEBUG ${ CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT } CACHE STRING
2002-11-12 02:10:30 +03:00
" F l a g s u s e d b y t h e l i n k e r d u r i n g d e b u g b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_EXE_LINKER_FLAGS_MINSIZEREL ${ CMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT } CACHE STRING
2002-11-12 02:10:30 +03:00
" F l a g s u s e d b y t h e l i n k e r d u r i n g r e l e a s e m i n s i z e b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_EXE_LINKER_FLAGS_RELEASE ${ CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT } "" CACHE STRING
2002-11-12 02:10:30 +03:00
" F l a g s u s e d b y t h e l i n k e r d u r i n g r e l e a s e b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
2002-11-12 02:10:30 +03:00
$ { C M A K E _ E X E _ L I N K E R _ F L A G S _ R E L W I T H D E B I N F O _ I N I T } C A C H E S T R I N G
" F l a g s u s e d b y t h e l i n k e r d u r i n g R e l e a s e w i t h D e b u g I n f o b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_SHARED_LINKER_FLAGS_DEBUG ${ CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT } CACHE STRING
2002-11-12 02:10:30 +03:00
" F l a g s u s e d b y t h e l i n k e r d u r i n g d e b u g b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL ${ CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL_INIT }
2002-11-12 02:10:30 +03:00
C A C H E S T R I N G
" F l a g s u s e d b y t h e l i n k e r d u r i n g r e l e a s e m i n s i z e b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_SHARED_LINKER_FLAGS_RELEASE ${ CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT } "" CACHE STRING
2002-11-12 02:10:30 +03:00
" F l a g s u s e d b y t h e l i n k e r d u r i n g r e l e a s e b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
2002-11-12 02:10:30 +03:00
$ { C M A K E _ S H A R E D _ L I N K E R _ F L A G S _ R E L W I T H D E B I N F O _ I N I T } C A C H E S T R I N G
" F l a g s u s e d b y t h e l i n k e r d u r i n g R e l e a s e w i t h D e b u g I n f o b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_MODULE_LINKER_FLAGS_DEBUG ${ CMAKE_MODULE_LINKER_FLAGS_DEBUG_INIT } CACHE STRING
2002-11-12 02:10:30 +03:00
" F l a g s u s e d b y t h e l i n k e r d u r i n g d e b u g b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL ${ CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL_INIT }
2002-11-12 02:10:30 +03:00
C A C H E S T R I N G
" F l a g s u s e d b y t h e l i n k e r d u r i n g r e l e a s e m i n s i z e b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_MODULE_LINKER_FLAGS_RELEASE ${ CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT } "" CACHE STRING
2002-11-12 02:10:30 +03:00
" F l a g s u s e d b y t h e l i n k e r d u r i n g r e l e a s e b u i l d s . " )
2002-12-05 21:44:11 +03:00
SET ( CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
2002-11-12 02:10:30 +03:00
$ { C M A K E _ M O D U L E _ L I N K E R _ F L A G S _ R E L W I T H D E B I N F O _ I N I T } C A C H E S T R I N G
" F l a g s u s e d b y t h e l i n k e r d u r i n g R e l e a s e w i t h D e b u g I n f o b u i l d s . " )
2002-12-05 21:44:11 +03:00
ENDIF ( NOT CMAKE_NOT_USING_CONFIG_FLAGS )
# shared linker flags
2003-05-23 17:35:04 +04:00
SET ( CMAKE_SHARED_LINKER_FLAGS ${ CMAKE_SHARED_LINKER_FLAGS_INIT } $ENV{ LDFLAGS }
2002-12-19 20:51:50 +03:00
C A C H E S T R I N G " F l a g s u s e d b y t h e l i n k e r d u r i n g t h e c r e a t i o n o f d l l ' s . " )
2002-12-05 21:44:11 +03:00
# module linker flags
2003-05-23 17:35:04 +04:00
SET ( CMAKE_MODULE_LINKER_FLAGS ${ CMAKE_MODULE_LINKER_FLAGS_INIT } $ENV{ LDFLAGS }
2002-12-19 20:51:50 +03:00
C A C H E S T R I N G " F l a g s u s e d b y t h e l i n k e r d u r i n g t h e c r e a t i o n o f m o d u l e s . " )
2002-11-12 02:10:30 +03:00
2002-11-12 17:12:13 +03:00
SET ( CMAKE_BUILD_TOOL ${ CMAKE_MAKE_PROGRAM } CACHE INTERNAL
" W h a t i s t h e t a r g e t b u i l d t o o l c m a k e i s g e n e r a t i n g f o r . " )
2002-11-12 02:10:30 +03:00
2002-11-08 23:46:08 +03:00
MARK_AS_ADVANCED (
2002-11-12 17:12:13 +03:00
C M A K E _ B U I L D _ T O O L
2002-11-08 23:46:08 +03:00
C M A K E _ V E R B O S E _ M A K E F I L E
C M A K E _ C X X _ F L A G S
C M A K E _ C X X _ F L A G S _ R E L E A S E
C M A K E _ C X X _ F L A G S _ R E L W I T H D E B I N F O
C M A K E _ C X X _ F L A G S _ M I N S I Z E R E L
C M A K E _ C X X _ F L A G S _ D E B U G
2002-11-21 19:46:13 +03:00
2002-11-08 23:46:08 +03:00
C M A K E _ C _ F L A G S
2002-11-21 19:46:13 +03:00
C M A K E _ C _ F L A G S _ D E B U G
C M A K E _ C _ F L A G S _ M I N S I Z E R E L
C M A K E _ C _ F L A G S _ R E L E A S E
C M A K E _ C _ F L A G S _ R E L W I T H D E B I N F O
2002-11-12 02:10:30 +03:00
2004-08-12 00:35:55 +04:00
C M A K E _ F O R T R A N _ F L A G S
C M A K E _ F O R T R A N _ F L A G S _ D E B U G
C M A K E _ F O R T R A N _ F L A G S _ M I N S I Z E R E L
C M A K E _ F O R T R A N _ F L A G S _ R E L E A S E
C M A K E _ F O R T R A N _ F L A G S _ R E L W I T H D E B I N F O
2002-11-12 02:10:30 +03:00
C M A K E _ E X E _ L I N K E R _ F L A G S
C M A K E _ E X E _ L I N K E R _ F L A G S _ D E B U G
C M A K E _ E X E _ L I N K E R _ F L A G S _ M I N S I Z E R E L
C M A K E _ E X E _ L I N K E R _ F L A G S _ R E L E A S E
C M A K E _ E X E _ L I N K E R _ F L A G S _ R E L W I T H D E B I N F O
C M A K E _ S H A R E D _ L I N K E R _ F L A G S
C M A K E _ S H A R E D _ L I N K E R _ F L A G S _ D E B U G
C M A K E _ S H A R E D _ L I N K E R _ F L A G S _ M I N S I Z E R E L
C M A K E _ S H A R E D _ L I N K E R _ F L A G S _ R E L E A S E
C M A K E _ S H A R E D _ L I N K E R _ F L A G S _ R E L W I T H D E B I N F O
C M A K E _ M O D U L E _ L I N K E R _ F L A G S
C M A K E _ M O D U L E _ L I N K E R _ F L A G S _ D E B U G
C M A K E _ M O D U L E _ L I N K E R _ F L A G S _ M I N S I Z E R E L
C M A K E _ M O D U L E _ L I N K E R _ F L A G S _ R E L E A S E
C M A K E _ M O D U L E _ L I N K E R _ F L A G S _ R E L W I T H D E B I N F O
2002-11-08 23:46:08 +03:00
)
2003-02-04 23:37:47 +03:00
IF ( NOT UNIX )
MARK_AS_ADVANCED ( CMAKE_INSTALL_PREFIX )
ENDIF ( NOT UNIX )
2002-11-11 20:31:46 +03:00
SET ( CMAKE_SYSTEM_SPECIFIC_INFORMATION_LOADED 1 )