From be5a4606ff4dcbad6fe0d0f2e72ca766af7010df Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 21 Aug 2025 12:13:51 +1000 Subject: [PATCH] Cleanup: quiet use of unknown variable warning in CMake Also set variables instead of appending as they won't have been defined. --- intern/openvdb/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/intern/openvdb/CMakeLists.txt b/intern/openvdb/CMakeLists.txt index 79a34eb962f..22e2f956197 100644 --- a/intern/openvdb/CMakeLists.txt +++ b/intern/openvdb/CMakeLists.txt @@ -3,17 +3,20 @@ # SPDX-License-Identifier: GPL-2.0-or-later if(WITH_OPENVDB) - list(APPEND INC + set(INC_SYS + ) + + set(INC PUBLIC . ) - list(APPEND SRC + set(SRC openvdb_capi.h openvdb_fwd.hh openvdb_capi.cc ) - list(APPEND LIB + set(LIB PUBLIC bf::dependencies::optional::openvdb ) @@ -23,4 +26,4 @@ else() add_library(bf_intern_openvdb INTERFACE) endif() -add_library(bf::intern::optional::openvdb ALIAS bf_intern_openvdb) \ No newline at end of file +add_library(bf::intern::optional::openvdb ALIAS bf_intern_openvdb)