Skip to content
Snippets Groups Projects
Commit 2a8d046f authored by Christian Engwer's avatar Christian Engwer
Browse files

[cmake] automatically add all found dependencies and suggestions to meta data

parent d9f67704
Branches
Tags
1 merge request!1074Fix python meta data generation
......@@ -273,7 +273,16 @@ function(dune_python_install_package)
string(APPEND _export_builddirs "\;${${mod}_DIR}")
endforeach()
# add the list of HAVE_{MODULE} flags to the meta data
set(_cmake_flags "")
foreach(_dep ${ProjectName} ${ALL_DEPENDENCIES})
dune_module_to_uppercase(upper ${_dep})
if(NOT ${HAVE_${upper}} STREQUAL "")
list(APPEND _cmake_flags "HAVE_${upper}:=${HAVE_${upper}}")
endif()
endforeach()
# handle all manually added flags
foreach(flags_loop IN ITEMS ${PYINST_CMAKE_METADATA_FLAGS})
if(${flags_loop})
set(value ${${flags_loop}})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment