diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/cmake/macros.cmake | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/intern/cycles/cmake/macros.cmake b/intern/cycles/cmake/macros.cmake index c5fe5f672c0..6dd40847c11 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(APPLE) + 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) |