File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ if (PROJECT_IS_TOP_LEVEL)
1717 option (USE_SUITESPARSE "Use suite sparse methods for matrix inversion" ON )
1818 option (USE_PYBIND "Generate pybindings" ON )
1919 option (BUILD_CURVATURE_METRIC_TESTS "Build tests" ON )
20+ add_option(USE_EMBREE "Use Embree for rendering" OFF )
2021
2122 # Set libigl and suitesparse options
2223 option (LIBIGL_PREDICATES "Use Predicates" ON )
@@ -40,7 +41,6 @@ if(USE_MULTIPRECISION)
4041endif ()
4142
4243# Set compile definitions
43- add_compile_definitions (USE_EMBREE)
4444add_compile_definitions (_USE_MATH_DEFINES)
4545if (USE_MULTIPRECISION)
4646 add_compile_definitions (MULTIPRECISION)
@@ -52,9 +52,12 @@ if (RENDER_TEXTURE)
5252 option (LIBIGL_OPENGL "Use OpenGL" ON )
5353 option (LIBIGL_GLFW "Use GLFW" ON )
5454 option (LIBIGL_PNG "Use PNG" ON )
55- option (LIBIGL_EMBREE "Use EMBREE" ON )
5655 add_compile_definitions (RENDER_TEXTURE)
5756endif ()
57+ if (USE_EMBREE)
58+ add_compile_definitions (USE_EMBREE)
59+ option (LIBIGL_EMBREE "Use EMBREE" ON )
60+ endif ()
5861if (USE_PYBIND)
5962 add_compile_definitions (PYBIND)
6063endif ()
You can’t perform that action at this time.
0 commit comments