Skip to content

Commit

Permalink
Disable raycast example when tinyobjloader is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Nov 28, 2022
1 parent 177f283 commit 0a9716a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/raycast/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
cmake_minimum_required (VERSION 3.18.3)
project (llama-raycast CXX)

find_package(tinyobjloader CONFIG REQUIRED)
find_package(tinyobjloader CONFIG)
if (NOT tinyobjloader_FOUND)
message(WARNING "tinyobjloader not found: raycast example will not be built")
return()
endif()

if (NOT TARGET llama::llama)
find_package(llama CONFIG REQUIRED)
endif()
Expand Down

0 comments on commit 0a9716a

Please sign in to comment.