Skip to content

Commit

Permalink
only append anari_viewer target with match3D once for downstream cons…
Browse files Browse the repository at this point in the history
…umers
  • Loading branch information
jeffamstutz committed Jul 14, 2023
1 parent 23b12e6 commit 168485f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/anariConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (@INSTALL_CODE_GEN_SCRIPTS@)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/anari_generate_codegen.cmake)
endif()

if (TARGET anari::anari_viewer)
if (TARGET anari::anari_viewer AND NOT ANARI_FOUND)
set(match3D_DIR ${ANARI_DATAROOTDIR}/anari_viewer/match3D_src/cmake)
find_package(match3D REQUIRED stb_image nativefiledialog imnodes)
target_link_libraries(anari::anari_viewer INTERFACE match3D::match3D)
Expand Down

0 comments on commit 168485f

Please sign in to comment.