Skip to content
Snippets Groups Projects
Commit 8aab201c authored by Andreas Dedner's avatar Andreas Dedner
Browse files

add test for `shared` if ug is found

parent d540d1fd
Branches
Tags
1 merge request!790Feature/add python bindings
......@@ -80,6 +80,12 @@ def make_project(dir, description, subdirs=None, enable_all_packages=True):
cmake_content += ['', 'include(DuneMacros)', 'dune_project()']
if enable_all_packages:
cmake_content += ['dune_enable_all_packages()']
cmake_content += ['',
'if( dune-uggrid_FOUND )',
' if( NOT BUILD_SHARED_LIBS )',
' message(SEND_ERROR "dune-uggrid found but shared libs disabled! Python bindings for UGGrid will only work with shared -DBUILD_SHARED_LIBS=ON")',
' endif()',
'endif()']
if subdirs is not None:
cmake_content += [''] + ['add_subdirectory("' + d + '")' for d in subdirs]
cmake_content += ['', 'finalize_dune_project(GENERATE_CONFIG_H_CMAKE)']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment