diff --git a/cmake/FindEmbree.cmake b/cmake/FindEmbree.cmake index 35afcf7..f9c9f7a 100644 --- a/cmake/FindEmbree.cmake +++ b/cmake/FindEmbree.cmake @@ -1,20 +1,20 @@ -find_path(EMBREE_INCLUDE_PATH embree3/rtcore.h +find_path(EMBREE_INCLUDE_PATH embree4/rtcore.h ${CMAKE_SOURCE_DIR}/embree/include /usr/include /usr/local/include /opt/local/include) if (APPLE) -find_library(EMBREE_LIBRARY NAMES embree3 PATHS +find_library(EMBREE_LIBRARY NAMES embree4 PATHS ${CMAKE_SOURCE_DIR}/embree/lib-macos /usr/lib /usr/local/lib /opt/local/lib) elseif (WIN32) -find_library(EMBREE_LIBRARY NAMES embree3 PATHS +find_library(EMBREE_LIBRARY NAMES embree4 PATHS ${CMAKE_SOURCE_DIR}/embree/lib-win32) else () -find_library(EMBREE_LIBRARY NAMES embree3 PATHS +find_library(EMBREE_LIBRARY NAMES embree4 PATHS ${CMAKE_SOURCE_DIR}/embree/lib-linux /usr/lib /usr/local/lib