summaryrefslogtreecommitdiffstats
path: root/Modules/UseVTK40.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-08 19:55:41 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-08 19:55:41 (GMT)
commitfd47a2ae966c3ac1fac1ee699728c55862fb23a2 (patch)
treeaebe4b91f0fd4b906c7f0d1361ed8d2d9385cff4 /Modules/UseVTK40.cmake
parent002ae925c31fc3f041ac462919000535d221c93f (diff)
downloadCMake-fd47a2ae966c3ac1fac1ee699728c55862fb23a2.zip
CMake-fd47a2ae966c3ac1fac1ee699728c55862fb23a2.tar.gz
CMake-fd47a2ae966c3ac1fac1ee699728c55862fb23a2.tar.bz2
Drop old CMake "build settings" export/import
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.
Diffstat (limited to 'Modules/UseVTK40.cmake')
-rw-r--r--Modules/UseVTK40.cmake6
1 files changed, 0 insertions, 6 deletions
diff --git a/Modules/UseVTK40.cmake b/Modules/UseVTK40.cmake
index 750d44b..086f6da 100644
--- a/Modules/UseVTK40.cmake
+++ b/Modules/UseVTK40.cmake
@@ -5,12 +5,6 @@
# be included only when FindVTK.cmake sets the VTK_USE_FILE variable
# to point here.
-# Load the compiler settings used for VTK.
-IF(VTK_BUILD_SETTINGS_FILE)
- INCLUDE(CMakeImportBuildSettings)
- CMAKE_IMPORT_BUILD_SETTINGS(${VTK_BUILD_SETTINGS_FILE})
-ENDIF(VTK_BUILD_SETTINGS_FILE)
-
# Add compiler flags needed to use VTK.
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VTK_REQUIRED_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")