mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
fd47a2ae96
The CMakeExportBuildSettings and CMakeImportBuildSettings modules used to export compiler paths and flags from one project and import them into another. The import process would force the settings on the including project. Forcing settings helped long ago when compiler ABIs changed frequently but is now just a nuisance. We've deemed the behavior harmful so this commit simply removes it. The modules and macros now error out if included or called from a project that requires CMake 2.8 or higher.
14 lines
681 B
CMake
14 lines
681 B
CMake
|
|
# The command CMAKE_EXPORT_BUILD_SETTINGS(...) was used by
|
|
# @PROJECT_NAME@ to generate this file. As of CMake 2.8 the
|
|
# functionality of this command has been dropped as it was deemed
|
|
# harmful (confusing users by changing their compiler).
|
|
|
|
# CMake 2.6 and below do not support loading their equivalent of this
|
|
# file if it was produced by a newer version of CMake. CMake 2.8 and
|
|
# above simply do not load this file. Therefore we simply error out.
|
|
message(FATAL_ERROR
|
|
"This @PROJECT_NAME@ was built by CMake @CMAKE_VERSION@, but this is CMake "
|
|
"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}. "
|
|
"Please upgrade CMake to a more recent version.")
|