[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.148 1.149

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Sep 28 11:36:59 EDT 2009


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv29696/Source/kwsys

Modified Files:
	CMakeLists.txt 
Log Message:
Install KWSys Copyright.txt as documentation

This commit adds KWSys configuration option KWSYS_INSTALL_DOC_DIR to
specify the directory for installation of documentation.  We use it to
put the KWSys Copyright.txt file at the location

  ${KWSYS_INSTALL_DOC_DIR}/${KWSYS_NAMESPACE}/Copyright.txt

in the project installation tree.  This helps containing projects meet
the license requirement to distribute the copyright and license with
binary forms.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/CMakeLists.txt,v
retrieving revision 1.148
retrieving revision 1.149
diff -C 2 -d -r1.148 -r1.149
*** CMakeLists.txt	22 Sep 2009 19:58:10 -0000	1.148
--- CMakeLists.txt	28 Sep 2009 15:36:54 -0000	1.149
***************
*** 56,59 ****
--- 56,61 ----
  #                              The values should be specified relative to
  #                              the installation prefix and NOT start with '/'.
+ #  KWSYS_INSTALL_DOC_DIR     = The installation target directory for documentation
+ #                              such as copyright information.
  #
  #  KWSYS_INSTALL_COMPONENT_NAME_RUNTIME     = Name of runtime and development
***************
*** 575,578 ****
--- 577,596 ----
  
  #-----------------------------------------------------------------------------
+ IF(KWSYS_INSTALL_DOC_DIR)
+   # Assign the license to the runtime component since it must be
+   # distributed with binary forms of this software.
+   IF(KWSYS_INSTALL_COMPONENT_NAME_RUNTIME)
+     SET(KWSYS_INSTALL_LICENSE_OPTIONS ${KWSYS_INSTALL_LICENSE_OPTIONS}
+       COMPONENT ${KWSYS_INSTALL_COMPONENT_NAME_RUNTIME}
+       )
+   ENDIF(KWSYS_INSTALL_COMPONENT_NAME_RUNTIME)
+ 
+   # Install the license under the documentation directory.
+   INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt
+     DESTINATION ${KWSYS_INSTALL_DOC_DIR}/${KWSYS_NAMESPACE}
+     ${KWSYS_INSTALL_LICENSE_OPTIONS})
+ ENDIF(KWSYS_INSTALL_DOC_DIR)
+ 
+ #-----------------------------------------------------------------------------
  # Create STL header wrappers to block warnings in the STL headers and
  # give standard names by which they may be included.



More information about the Cmake-commits mailing list