Browse Source

Prevent the export of Embree into the directiory specified by 'CMAKE_INSTALL_PREFIX' when calling 'make install'. Tested and verified on both macOS and Ubuntu.

BruegelN 6 years ago
parent
commit
e8969c21a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmake/libigl.cmake

+ 1 - 1
cmake/libigl.cmake

@@ -302,7 +302,7 @@ if(LIBIGL_WITH_EMBREE)
     # TODO: Should probably save/restore the CMAKE_CXX_FLAGS_*, since embree seems to be
     # TODO: Should probably save/restore the CMAKE_CXX_FLAGS_*, since embree seems to be
     # overriding them on Windows. But well... it works for now.
     # overriding them on Windows. But well... it works for now.
     igl_download_embree()
     igl_download_embree()
-    add_subdirectory("${EMBREE_DIR}" "embree")
+    add_subdirectory("${EMBREE_DIR}" "embree" EXCLUDE_FROM_ALL)
   endif()
   endif()
 
 
   compile_igl_module("embree")
   compile_igl_module("embree")