From: Timo Heister Date: Tue, 20 Feb 2018 18:32:56 +0000 (-0500) Subject: expand_all_instantiations cmake target X-Git-Tag: v9.0.0-rc1~410^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da7c7dc9e277665805bbf0cfde92ae29b69c88c0;p=dealii.git expand_all_instantiations cmake target This target is useful to be able to run clang-tidy as it needs all .inst files but doesn't require a built project. --- diff --git a/cmake/macros/macro_expand_instantiations.cmake b/cmake/macros/macro_expand_instantiations.cmake index 3d3504f4de..44e52634f5 100644 --- a/cmake/macros/macro_expand_instantiations.cmake +++ b/cmake/macros/macro_expand_instantiations.cmake @@ -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. diff --git a/cmake/setup_custom_targets.cmake b/cmake/setup_custom_targets.cmake index fb0b84f4f9..16246b1acf 100644 --- a/cmake/setup_custom_targets.cmake +++ b/cmake/setup_custom_targets.cmake @@ -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 index 0000000000..8214d3bd05 --- /dev/null +++ b/doc/news/changes/minor/20180220Heister @@ -0,0 +1,3 @@ +New: A top level target 'expand_all_instantiations' generates all .inst files. +
+(Timo Heister, Daniel Arndt, 2018/02/20)