1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: Install only a single copyright file
Avoid duplication of COPYING and debian/copyright. A symlink is provided
between the two.
Author: Nicholas Breen
Origin: vendor
Forwarded: not-needed
Last-Update: 2015-09-26
---
Index: gromacs/CMakeLists.txt
===================================================================
--- gromacs.orig/CMakeLists.txt
+++ gromacs/CMakeLists.txt
@@ -153,6 +153,9 @@ set(build_types_with_explicit_flags RELE
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
+# Debian specific, see debian/patches/copyright-file.patch
+set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/debian/copyright")
+
include(gmxCTestUtilities)
gmx_ctest_init()
@@ -1011,7 +1014,7 @@ endif()
#COPYING file: Only necessary for binary distributions.
#Simpler to always install.
-install(FILES COPYING DESTINATION ${GMX_INSTALL_GMXDATADIR} COMPONENT data)
+install(FILES DESTINATION ${GMX_INSTALL_GMXDATADIR} COMPONENT data)
if (BUILD_TESTING)
include(tests/CheckTarget.cmake)
|