Skip to content

Commit 9fe1f77

Browse files
committed
Fixed embree option bug
1 parent 7ec82c7 commit 9fe1f77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,13 @@ if(RENDER_TEXTURE)
8585
igl::core
8686
igl::glfw
8787
igl::png
88-
igl::embree
8988
plot
9089
)
90+
if(USE_EMBREE)
91+
target_link_libraries(rendering PUBLIC
92+
igl::embree
93+
)
94+
endif()
9195
set(RENDER_LIBRARIES
9296
rendering
9397
)

0 commit comments

Comments
 (0)