Просмотр исходного кода

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 лет назад
Родитель
Сommit
e8969c21a6
1 измененных файлов с 1 добавлено и 1 удалено
  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
     # overriding them on Windows. But well... it works for now.
     igl_download_embree()
-    add_subdirectory("${EMBREE_DIR}" "embree")
+    add_subdirectory("${EMBREE_DIR}" "embree" EXCLUDE_FROM_ALL)
   endif()
 
   compile_igl_module("embree")