mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
43 lines
1.2 KiB
Diff
43 lines
1.2 KiB
Diff
diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt
|
|
index d9a2ebf8571..f3b7d156024 100644
|
|
--- a/intern/cycles/blender/CMakeLists.txt
|
|
+++ b/intern/cycles/blender/CMakeLists.txt
|
|
@@ -66,6 +66,12 @@ if(WITH_CYCLES_LOGGING)
|
|
)
|
|
endif()
|
|
|
|
+if(WITH_CYCLES_EMBREE)
|
|
+ list(APPEND LIB
|
|
+ ${EMBREE_LIBRARIES}
|
|
+ )
|
|
+endif()
|
|
+
|
|
set(ADDON_FILES
|
|
addon/__init__.py
|
|
addon/engine.py
|
|
diff --git a/build_files/cmake/Modules/FindEmbree.cmake b/build_files/cmake/Modules/FindEmbree.cmake
|
|
index d9d525d4586..03b509a28f3 100644
|
|
--- a/build_files/cmake/Modules/FindEmbree.cmake
|
|
+++ b/build_files/cmake/Modules/FindEmbree.cmake
|
|
@@ -72,7 +72,7 @@ ENDFOREACH()
|
|
|
|
FIND_LIBRARY(EMBREE_LIBRARY
|
|
NAMES
|
|
- libembree3
|
|
+ embree3
|
|
HINTS
|
|
${_embree_SEARCH_DIRS}
|
|
PATH_SUFFIXES
|
|
@@ -83,10 +83,10 @@ FIND_LIBRARY(EMBREE_LIBRARY
|
|
# all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EMBREE DEFAULT_MSG
|
|
- _embree_LIBRARIES EMBREE_INCLUDE_DIR)
|
|
+ EMBREE_LIBRARY EMBREE_INCLUDE_DIR)
|
|
|
|
IF(EMBREE_FOUND)
|
|
- SET(EMBREE_LIBRARIES ${_embree_LIBRARIES})
|
|
+ SET(EMBREE_LIBRARIES ${EMBREE_LIBRARY})
|
|
SET(EMBREE_INCLUDE_DIRS ${EMBREE_INCLUDE_DIR})
|
|
ENDIF(EMBREE_FOUND)
|
|
|