Cleanup: quiet use of unknown variable warning in CMake
Also set variables instead of appending as they won't have been defined.
This commit is contained in:
@@ -3,17 +3,20 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
if(WITH_OPENVDB)
|
if(WITH_OPENVDB)
|
||||||
list(APPEND INC
|
set(INC_SYS
|
||||||
|
)
|
||||||
|
|
||||||
|
set(INC
|
||||||
PUBLIC .
|
PUBLIC .
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND SRC
|
set(SRC
|
||||||
openvdb_capi.h
|
openvdb_capi.h
|
||||||
openvdb_fwd.hh
|
openvdb_fwd.hh
|
||||||
openvdb_capi.cc
|
openvdb_capi.cc
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND LIB
|
set(LIB
|
||||||
PUBLIC bf::dependencies::optional::openvdb
|
PUBLIC bf::dependencies::optional::openvdb
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -23,4 +26,4 @@ else()
|
|||||||
add_library(bf_intern_openvdb INTERFACE)
|
add_library(bf_intern_openvdb INTERFACE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(bf::intern::optional::openvdb ALIAS bf_intern_openvdb)
|
add_library(bf::intern::optional::openvdb ALIAS bf_intern_openvdb)
|
||||||
|
|||||||
Reference in New Issue
Block a user