1. 25 Apr, 2014 1 commit
    • Brad King's avatar
      Set MACOSX_RPATH property default consistently across CMake versions · cd0b6e68
      Brad King authored
      The MACOSX_RPATH target property was introduced in CMake 2.8.12, but we
      currently allow CMake 2.8.8.  Set CMAKE_MACOSX_RPATH to 0 by default
      so that we get consistent behavior across all versions of CMake.
      Leave a comment explaining when the default should be updated.
      
      Now that we set a MACOSX_RPATH default explicitly, we no longer need to
      set CMake Policy CMP0042 as was added in commit 2ad9f474 (Set CMake
      Policies CMP0025 and CMP0042 as necessary, 2014-03-11), so remove it.
      
      Change-Id: I8af24a728379176b9e7ab933206eaa956e1c60f2
      cd0b6e68
  2. 11 Mar, 2014 1 commit
    • Brad King's avatar
      Set CMake Policies CMP0025 and CMP0042 as necessary · 2ad9f474
      Brad King authored
      CMake 3.0 introduces these policies to improve default behavior on OS X.
      Set them explicitly in VTK to avoid policy warnings.  VTK already works
      with the NEW behavior.
      
      Policy CMP0025 affects the project() command when the Apple Clang
      compiler is used so we need to set it in all the Examples.  Policy
      CMP0042 affects shared libraries on OS X, enabling MACOSX_RPATH by
      default.  Set it in directories where we create libraries.  Also tell
      KWSys to enable MACOSX_RPATH explicitly instead of setting the policy.
      
      Change-Id: I543b60ee1b8f629adb150e01ee83d99dddb66f46
      2ad9f474
  3. 28 Jun, 2012 1 commit
  4. 10 May, 2012 1 commit
    • Brad King's avatar
      Remove compatibility with non-standard C++ streams · 3279f44d
      Brad King authored
      Remove test for VTK_USE_ANSI_STDLIB and assume availability.  VTK no
      longer supports C++ compilers without standard streams.  Define
      VTK_USE_ANSI_STDLIB if VTK_LEGACY_REMOVE is OFF so applications that
      test for it see the definition.
      
      Change-Id: Ief0c47e8f720754db1916a96f6ed012aa0d8555e
      3279f44d
  5. 20 Apr, 2012 1 commit
    • Brad King's avatar
      Refactor VTK version handling · ebf6777d
      Brad King authored
      Move VTK_(MAJOR|MINOR|BUILD)_VERSION out of "CMakeLists.txt" into
      dedicated file "CMake/vtkVersion.cmake".  Move the preprocessor macros
      from "vtkConfigure.h" to new configured header "vtkVersionMacros.h".
      This avoids rebuilding everything when the version number changes.
      Include the new header from the old location to provide the macros for
      compatibility unless VTK_LEGACY_REMOVE is ON.
      
      Define the BUILD version to be a date during development and the patch
      level for releases (or during preparation of one as we are currently).
      The CMake package version file (VTKConfigVersion.cmake) already does
      this so make the C++-presented version consistent with it.  Add a
      "CMake/vtkVersion.bash" script to help a nightly robot update the build
      version when it is a date.  This replaces KWSys DateStamp for VTK.
      
      Compile the wrapping parser with only the major and minor version number
      components instead of the full version number.  This avoids causing a
      full rebuild of all wrappers whenever the build version component
      changes.  The wrapper only needs the version to provide its --version
      option anyway.
      
      Teach the documentation generation scripts to extract the VTK version
      numbers from the new version file.  Drop the separate revision file
      infrastructure because everything is now in one version file.
      
      Also remove unused file CMake/VTKVersionMacros.cmake.
      
      Change-Id: If988b32c738e6161237f7e3edaff49e75cb15b25
      ebf6777d
  6. 09 Apr, 2012 1 commit
    • VTK Developers's avatar
      Add modular VTK build system · 0c1471f1
      VTK Developers authored
      Add module.cmake, CMakeLists.txt, and other build system files.
      
      The modular VTK build system is not yet mature.  The monolithic build
      files had a lot of infrastructure.  The modular build files reproduce
      much of the functionality but some features will need to be restored
      later.  Document status and tasks in "TODO-Modularization.txt".
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      0c1471f1