Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/cmake/macros.cmake')
-rw-r--r--intern/cycles/cmake/macros.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/intern/cycles/cmake/macros.cmake b/intern/cycles/cmake/macros.cmake
index c5fe5f672c0..ff62b816e6c 100644
--- a/intern/cycles/cmake/macros.cmake
+++ b/intern/cycles/cmake/macros.cmake
@@ -86,7 +86,12 @@ endmacro()
# Cycles library dependencies common to all executables
-macro(cycles_link_directories)
+function(cycles_link_directories)
+ if(APPLE)
+ # APPLE plaform uses full paths for linking libraries, and avoids link_directories.
+ return()
+ endif()
+
if(WITH_OPENCOLORIO)
link_directories(${OPENCOLORIO_LIBPATH})
endif()
@@ -110,7 +115,7 @@ macro(cycles_link_directories)
${OPENEXR_LIBPATH}
${OPENJPEG_LIBPATH}
)
-endmacro()
+endfunction()
macro(cycles_target_link_libraries target)
if(WITH_CYCLES_LOGGING)