Skip to content
Snippets Groups Projects
Commit e148022b authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Use target and scope in dune_target_add_config_header

parent fca55ab8
No related branches found
No related tags found
1 merge request!924WIP: playground for config.h replacement
Pipeline #33179 failed
......@@ -1206,7 +1206,7 @@ macro(dune_target_add_config_header _target _scope _config_h)
install(FILES ${PROJECT_BINARY_DIR}/dune/internal/${ProjectName}.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/internal/${ProjectName}.hh)
target_precompile_headers(dunecommon PUBLIC
target_precompile_headers(${_target} ${_scope}
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/dune/internal/${ProjectName}.hh>
$<INSTALL_INTERFACE:dune/internal/${ProjectName}.hh>) # does not work
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment