STYLE: Nightly Version update
[cmake.git] / Modules / CMakeExportBuildSettings.cmake
blob1ec8b8add7c020e0916f661f54f13463e36a854f
1 # Macro to export the build settings for use by another project.
2 # Provide as an argument the file into which the settings are to be
3 # stored.
4 MACRO(CMAKE_EXPORT_BUILD_SETTINGS SETTINGS_FILE)
5   IF(${SETTINGS_FILE} MATCHES ".+")
6     CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeBuildSettings.cmake.in
7                    ${SETTINGS_FILE} @ONLY IMMEDIATE)
8   ELSE(${SETTINGS_FILE} MATCHES ".+")
9     MESSAGE(SEND_ERROR "CMAKE_EXPORT_BUILD_SETTINGS called with no argument.")
10   ENDIF(${SETTINGS_FILE} MATCHES ".+")
11 ENDMACRO(CMAKE_EXPORT_BUILD_SETTINGS)