2 #=============================================================================
3 # Copyright 2002-2009 Kitware, Inc.
5 # Distributed under the OSI-approved BSD License (the "License");
6 # see accompanying file Copyright.txt for details.
8 # This software is distributed WITHOUT ANY WARRANTY; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # See the License for more information.
11 #=============================================================================
12 # (To distribute this file outside of CMake, substitute the full
13 # License text for the above reference.)
15 # This module is purposely no longer documented. It does nothing useful.
16 if(NOT "${CMAKE_MINIMUM_REQUIRED_VERSION}" VERSION_LESS 2.7)
18 "The functionality of this module has been dropped as of CMake 2.8. "
19 "It was deemed harmful (confusing users by changing their compiler). "
20 "Please remove calls to the CMAKE_EXPORT_BUILD_SETTINGS macro and "
21 "stop including this module. "
22 "If this project generates any files for use by external projects, "
23 "remove any use of the CMakeImportBuildSettings module from them.")
26 # This macro used to store build settings of a project in a file to be
27 # loaded by another project using CMAKE_IMPORT_BUILD_SETTINGS. Now it
28 # creates a file that refuses to load (with comment explaining why).
29 macro(CMAKE_EXPORT_BUILD_SETTINGS SETTINGS_FILE)
30 if(${SETTINGS_FILE} MATCHES ".+")
31 configure_file(${CMAKE_ROOT}/Modules/CMakeBuildSettings.cmake.in
32 ${SETTINGS_FILE} @ONLY IMMEDIATE)
34 message(SEND_ERROR "CMAKE_EXPORT_BUILD_SETTINGS called with no argument.")