Skip to content

Commit

Permalink
Fix FindEmbree CMake file
Browse files Browse the repository at this point in the history
  • Loading branch information
BachiLi committed Jan 8, 2024
1 parent 10402de commit f5be64d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/FindEmbree.cmake
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f5be64d

Please sign in to comment.