]> https://gitweb.dealii.org/ - dealii.git/commitdiff
expand_all_instantiations cmake target 5935/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 20 Feb 2018 18:32:56 +0000 (13:32 -0500)
committerTimo Heister <timo.heister@gmail.com>
Tue, 20 Feb 2018 18:32:56 +0000 (13:32 -0500)
This target is useful to be able to run clang-tidy as it needs all .inst
files but doesn't require a built project.

cmake/macros/macro_expand_instantiations.cmake
cmake/setup_custom_targets.cmake
doc/news/changes/minor/20180220Heister [new file with mode: 0644]

index 3d3504f4def57e7d13e0a3d4f44ce9a89d8a82db..44e52634f52a13c3f5021c89104ba87b024ad6d9 100644 (file)
@@ -72,6 +72,11 @@ MACRO(EXPAND_INSTANTIATIONS _target _inst_in_files)
   #
   ADD_CUSTOM_TARGET(${_target}_inst ALL DEPENDS ${_inst_targets})
 
+  #
+  # Provide a way to generate all .inst files with a custom target.
+  #
+  ADD_DEPENDENCIES(expand_all_instantiations ${_target}_inst)
+
   #
   # Add a dependency to all target.${build_type} so that target.inst is
   # fully generated before target will be processed.
index fb0b84f4f9ff5069237e9059aa3385db7d067381..16246b1acf76ea7115d2a3761b9107de2ac78d3d 100644 (file)
@@ -174,3 +174,9 @@ FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake
 ADD_CUSTOM_TARGET(info
   COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake
   )
+
+
+#
+# Provide a target to build all .inst files
+#
+ADD_CUSTOM_TARGET(expand_all_instantiations)
diff --git a/doc/news/changes/minor/20180220Heister b/doc/news/changes/minor/20180220Heister
new file mode 100644 (file)
index 0000000..8214d3b
--- /dev/null
@@ -0,0 +1,3 @@
+New: A top level target 'expand_all_instantiations' generates all .inst files.
+<br>
+(Timo Heister, Daniel Arndt, 2018/02/20)

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.