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
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)