diff options
author | Brad King <brad.king@kitware.com> | 2008-01-23 20:22:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-23 20:22:38 (GMT) |
commit | f27379e3f7291abd0c7f3706cd9e1202052c9889 (patch) | |
tree | 36a283459358fe3b53a522c10a6312cfddee2db2 /Modules/VTKCompatibility.cmake | |
parent | ae356560a0715fca2f78e1df47723357f3c0c739 (diff) | |
download | CMake-f27379e3f7291abd0c7f3706cd9e1202052c9889.zip CMake-f27379e3f7291abd0c7f3706cd9e1202052c9889.tar.gz CMake-f27379e3f7291abd0c7f3706cd9e1202052c9889.tar.bz2 |
ENH: Added CMAKE_LINK_OLD_PATHS compatibility mode for linker search paths.
Diffstat (limited to 'Modules/VTKCompatibility.cmake')
-rw-r--r-- | Modules/VTKCompatibility.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/VTKCompatibility.cmake b/Modules/VTKCompatibility.cmake index 21d8aa0..8581f9a 100644 --- a/Modules/VTKCompatibility.cmake +++ b/Modules/VTKCompatibility.cmake @@ -31,6 +31,11 @@ SET(VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h" # work around an old bug in VTK SET(TIFF_RIGHT_VERSION 1) +# vtkRendering links to X11 with "-lXt ${X11_LIBRARIES}" because CMake +# 2.4 and below did not provide the X11_Xt_LIB variable. We need the +# linker search path compatiblity feature. +SET(CMAKE_LINK_OLD_PATHS 1) + # for very old VTK (versions prior to 4.2) MACRO(SOURCE_FILES) message (FATAL_ERROR "You are trying to build a very old version of VTK (prior to VTK 4.2). To do this you need to use CMake 2.0 as it was the last version of CMake to support VTK 4.0.") |