]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the installation path for a script. 7616/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 19 Jan 2019 03:47:01 +0000 (22:47 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sat, 19 Jan 2019 03:58:26 +0000 (22:58 -0500)
CMake rightfully complains that

CMake Error at cmake/scripts/CMakeLists.txt:56 (FILE):
  FILE COPY cannot find
  "/home/drwells/Documents/Code/CPP/dealii-dev/cmake/scripts/../contrib/utilities/indent.py".

doesn't exist: the script is in contrib/utilities, not cmake/contrib/utilities.

CMakeLists.txt
cmake/scripts/CMakeLists.txt
contrib/utilities/CMakeLists.txt [new file with mode: 0644]

index a94c64cf4dc6da4289d94c0b1d51ea415b12efde..8b24115908a891c85f2eaf8154ccea3bbe75e124 100644 (file)
@@ -157,6 +157,7 @@ ADD_SUBDIRECTORY(cmake/config) # has to be included after source
 ADD_SUBDIRECTORY(examples)
 
 ADD_SUBDIRECTORY(contrib/python-bindings)
+ADD_SUBDIRECTORY(contrib/utilities)
 
 IF(DEAL_II_HAVE_TESTS_DIRECTORY)
   ADD_SUBDIRECTORY(tests)
index c8ce19985e40414b215e3adf2af81475b65d32e6..da297a39e891d882f4df772e8b0a934abf84c8d6 100644 (file)
@@ -51,7 +51,6 @@ SET(_scripts
   ${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh
   ${CMAKE_CURRENT_SOURCE_DIR}/get_closest_tag.sh
   ${CMAKE_CURRENT_SOURCE_DIR}/get_latest_tag.sh
-  ${CMAKE_CURRENT_SOURCE_DIR}/../contrib/utilities/indent.py
   )
 FILE(COPY ${_scripts}
   DESTINATION ${CMAKE_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/scripts
diff --git a/contrib/utilities/CMakeLists.txt b/contrib/utilities/CMakeLists.txt
new file mode 100644 (file)
index 0000000..594d8cc
--- /dev/null
@@ -0,0 +1,29 @@
+## ---------------------------------------------------------------------
+##
+## Copyright (C) 2018 by the deal.II authors
+##
+## This file is part of the deal.II library.
+##
+## The deal.II library is free software; you can use it, redistribute
+## it, and/or modify it under the terms of the GNU Lesser General
+## Public License as published by the Free Software Foundation; either
+## version 2.1 of the License, or (at your option) any later version.
+## The full text of the license can be found in the file LICENSE.md at
+## the top level directory of deal.II.
+##
+## ---------------------------------------------------------------------
+
+#
+# At the present time we only install one script from this directory.
+#
+
+SET(_scripts
+  ${CMAKE_CURRENT_SOURCE_DIR}/indent.py
+  )
+FILE(COPY ${_scripts}
+  DESTINATION ${CMAKE_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/scripts
+  )
+INSTALL(FILES ${_scripts}
+  DESTINATION ${DEAL_II_SHARE_RELDIR}/scripts
+  COMPONENT library
+  )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.