diff options
Diffstat (limited to 'intern/cycles/cmake/macros.cmake')
-rw-r--r-- | intern/cycles/cmake/macros.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/cycles/cmake/macros.cmake b/intern/cycles/cmake/macros.cmake index cd1db8e95a9..abadfc2c1ac 100644 --- a/intern/cycles/cmake/macros.cmake +++ b/intern/cycles/cmake/macros.cmake @@ -74,6 +74,19 @@ macro(cycles_add_library target library_deps) endmacro() macro(cycles_external_libraries_append libraries) + if(APPLE) + list(APPEND ${libraries} "-framework Foundation") + if(WITH_USD) + list(APPEND ${libraries} "-framework CoreVideo -framework Cocoa") + endif() + if(WITH_CYCLES_STANDALONE_GUI OR WITH_USD) + list(APPEND ${libraries} "-framework OpenGL") + endif() + elseif(UNIX) + if(WITH_USD) + list(APPEND ${libraries} "X11") + endif() + endif() if(WITH_CYCLES_LOGGING) list(APPEND ${libraries} ${GLOG_LIBRARIES} ${GFLAGS_LIBRARIES}) endif() @@ -90,6 +103,7 @@ macro(cycles_external_libraries_append libraries) list(APPEND ${libraries} ${OPENCOLORIO_LIBRARIES}) if(APPLE) list(APPEND ${libraries} "-framework IOKit") + list(APPEND ${libraries} "-framework Carbon") endif() endif() if(WITH_OPENVDB) |