Skip to content
Snippets Groups Projects

WIP: remove config.h by moving HAVE_FOO into target properties

Closed Simon Praetorius requested to merge feature/remove_config_h into master
14 files
+ 83
121
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -17,7 +17,7 @@ set(HAVE_GMP ${GMP_FOUND})
if(GMP_FOUND)
dune_register_package_flags(
LIBRARIES GMP::gmpxx
COMPILE_DEFINITIONS "ENABLE_GMP=1"
COMPILE_DEFINITIONS "HAVE_GMP"
)
endif()
@@ -26,7 +26,7 @@ function(add_dune_gmp_flags _targets)
if(GMP_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} PUBLIC GMP::gmpxx)
target_compile_definitions(${_target} PUBLIC ENABLE_GMP=1)
target_compile_definitions(${_target} PUBLIC HAVE_GMP)
endforeach(_target ${_targets})
endif(GMP_FOUND)
endfunction(add_dune_gmp_flags)
Loading