2005-12-14 21:51:08 +03:00
|
|
|
# - export build settings from a project.
|
2005-12-15 18:41:19 +03:00
|
|
|
# CMAKE_EXPORT_BUILD_SETTINGS(SETTINGS_FILE)
|
|
|
|
# macro defined to export the build settings for use by another project.
|
2005-12-14 21:51:08 +03:00
|
|
|
# SETTINGS_FILE - the file into which the settings are to be stored.
|
2002-12-05 17:46:30 +03:00
|
|
|
MACRO(CMAKE_EXPORT_BUILD_SETTINGS SETTINGS_FILE)
|
|
|
|
IF(${SETTINGS_FILE} MATCHES ".+")
|
|
|
|
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeBuildSettings.cmake.in
|
|
|
|
${SETTINGS_FILE} @ONLY IMMEDIATE)
|
|
|
|
ELSE(${SETTINGS_FILE} MATCHES ".+")
|
|
|
|
MESSAGE(SEND_ERROR "CMAKE_EXPORT_BUILD_SETTINGS called with no argument.")
|
|
|
|
ENDIF(${SETTINGS_FILE} MATCHES ".+")
|
|
|
|
ENDMACRO(CMAKE_EXPORT_BUILD_SETTINGS)
|