From a2a8144b3fea17b5bee94baf6cb1765c2d0eb663 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Wed, 5 Feb 2020 16:49:58 +0100 Subject: [PATCH] Add guard for WALBERLA_BUILD_WITH_OPENVDB to CMakeLists.tmpl.txt --- src/pystencils_autodiff/CMakeLists.tmpl.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pystencils_autodiff/CMakeLists.tmpl.txt b/src/pystencils_autodiff/CMakeLists.tmpl.txt index 99fc680..67e939a 100644 --- a/src/pystencils_autodiff/CMakeLists.tmpl.txt +++ b/src/pystencils_autodiff/CMakeLists.tmpl.txt @@ -6,5 +6,7 @@ waLBerla_add_executable ( NAME {{ cmake_target_name }} DEPENDS {{depends | join(' ')}}) {% if 'walberla_openvdb' in depends -%} +if (WALBERLA_BUILD_WITH_OPENVDB) target_link_libraries( {{ cmake_target_name }} tbb boundary openvdb Half IexMath Iex IlmThread Imath) +endif(WALBERLA_BUILD_WITH_OPENVDB) {%- endif %} -- GitLab