Commit 08506ec2 authored by David Partyka's avatar David Partyka
Browse files

Add user settable VTK_INSTALL_DEVELOPMENT option.

This provides control over the internal VTK_INSTALL_NO_DEVELOPMENT option. VTK_INSTALL_DEVELOPMENT defaults to ON which was the previous default behaivoir.

Change-Id: I77fe3ea124b6d2814e07bc050c2768575d047a60
parent 3aa10fe7
......@@ -266,13 +266,26 @@ ENDIF(NOT VTK_INSTALL_JAVA_DIR)
# switch library installation on and off correctly we make the
# decision here.
SET(VTK_INSTALL_NO_LIBRARIES)
IF(NOT DEFINED VTK_INSTALL_DEVELOPMENT)
SET(VTK_INSTALL_DEVELOPMENT ON CACHE BOOL "Install headers, link libraries and other files used for development" FORCE )
ENDIF()
IF(NOT DEFINED VTK_INSTALL_NO_DEVELOPMENT)
IF(VTK_INSTALL_DEVELOPMENT)
SET(VTK_INSTALL_NO_DEVELOPMENT OFF)
ELSE()
SET(VTK_INSTALL_NO_DEVELOPMENT ON)
ENDIF()
ENDIF()
IF(BUILD_SHARED_LIBS)
IF(VTK_INSTALL_NO_RUNTIME AND VTK_INSTALL_NO_DEVELOPMENT)
SET(VTK_INSTALL_NO_LIBRARIES 1)
SET(VTK_INSTALL_NO_LIBRARIES ON)
ENDIF(VTK_INSTALL_NO_RUNTIME AND VTK_INSTALL_NO_DEVELOPMENT)
ELSE(BUILD_SHARED_LIBS)
IF(VTK_INSTALL_NO_DEVELOPMENT)
SET(VTK_INSTALL_NO_LIBRARIES 1)
SET(VTK_INSTALL_NO_LIBRARIES ON)
ENDIF(VTK_INSTALL_NO_DEVELOPMENT)
ENDIF(BUILD_SHARED_LIBS)
......@@ -1488,6 +1501,9 @@ IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
COMPONENT Development)
ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)
# Install rules for fixing up vtkpython
ADD_SUBDIRECTORY(Utilities/Release)
# Setup CPack
INCLUDE(VTKCPack.cmake)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment