Kaynağa Gözat

Remove commented code and unused vars from CTKConfig / CTKGenerateCTKConfig

See #403
Jean-Christophe Fillion-Robin 12 yıl önce
ebeveyn
işleme
3b6a9c5b20

+ 0 - 43
CMake/CTKConfig.cmake.in

@@ -1,37 +1,3 @@
-###########################################################################
-#
-#  Library:   CTK
-#
-#  Copyright (c) Kitware Inc.
-#
-#  Licensed under the Apache License, Version 2.0 (the "License");
-#  you may not use this file except in compliance with the License.
-#  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0.txt
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-###########################################################################
-###########################################################################
-#
-#  Program:   Visualization Toolkit
-#  Module:    VTKConfig.cmake.in
-#
-#  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
-#
-#  All rights reserved.
-#  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
-#
-#     This software is distributed WITHOUT ANY WARRANTY; without even
-#     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-#     PURPOSE.  See the above copyright notice for more information.
-#
-###########################################################################
 
 #
 # CTKConfig.cmake - CTK CMake configuration file for external projects.
@@ -162,15 +128,6 @@ set(CMAKE_MODULE_PATH
   ${CMAKE_MODULE_PATH}
   )
 
-# TODO The list of available libraries.
-
-# TODO The list of available plugins.
-
-# TODO The list of available applications.
-
-# TODO The Doxygen configuration.
-#SET(CTK_DOXYGEN_HOME "@CTK_DOXYGEN_HOME_CONFIG@")
-
 # TODO Relative install paths in the CTK install tree
 SET(CTK_INSTALL_BIN_DIR "@CTK_INSTALL_BIN_DIR@")
 SET(CTK_INSTALL_INCLUDE_DIR "@CTK_INSTALL_INCLUDE_DIR@")

+ 0 - 18
CMake/LastConfigureStep/CTKGenerateCTKConfig.cmake

@@ -40,22 +40,6 @@
 
 include(ctkFunctionGeneratePluginUseFile)
 
-# Construct version numbers for CTKConfigVersion.cmake.
-set(_CTK_VERSION_MAJOR ${CTK_MAJOR_VERSION})
-set(_CTK_VERSION_MINOR ${CTK_MINOR_VERSION})
-set(_CTK_VERSION_PATCH ${CTK_PATCH_VERSION})
-# We use odd minor numbers for development versions.
-# Use a date for the development patch level.
-# if("${_CTK_VERSION_MINOR}" MATCHES "[13579]$")
-#   include(${CTK_SOURCE_DIR}/Utilities/kwsys/kwsysDateStamp.cmake)
-#   set(_CTK_VERSION_PATCH
-#     "${KWSYS_DATE_STAMP_YEAR}${KWSYS_DATE_STAMP_MONTH}${KWSYS_DATE_STAMP_DAY}"
-#     )
-# endif()
-
-#-----------------------------------------------------------------------------
-# Settings shared between the build tree and install tree.
-
 
 #-----------------------------------------------------------------------------
 # Settings specific to the build tree.
@@ -159,8 +143,6 @@ foreach(varname ${CTK_SUPERBUILD_EP_VARNAMES})
 set(CTK_${varname} \"${${varname}}\")")
 endforeach()
 
-# Executable locations.
-
 # CMake extension module directory.
 set(CTK_CMAKE_DIR_CONFIG ${CTK_CMAKE_DIR})
 set(CTK_CMAKE_UTILITIES_DIR_CONFIG ${CTK_CMAKE_UTILITIES_DIR})