ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git] / Modules / CMakeExportBuildSettings.cmake
blob0c71efa03f6f22ef99865f25277fa0e0d62f90d9
1 # - export build settings from a project.
2 #  CMAKE_EXPORT_BUILD_SETTINGS(SETTINGS_FILE)
3 # macro defined to export the build settings for use by another project.
4 #  SETTINGS_FILE - the file into which the settings are to be stored.
5 MACRO(CMAKE_EXPORT_BUILD_SETTINGS SETTINGS_FILE)
6   IF(${SETTINGS_FILE} MATCHES ".+")
7     CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeBuildSettings.cmake.in
8                    ${SETTINGS_FILE} @ONLY IMMEDIATE)
9   ELSE(${SETTINGS_FILE} MATCHES ".+")
10     MESSAGE(SEND_ERROR "CMAKE_EXPORT_BUILD_SETTINGS called with no argument.")
11   ENDIF(${SETTINGS_FILE} MATCHES ".+")
12 ENDMACRO(CMAKE_EXPORT_BUILD_SETTINGS)