Skip to content

Commit 0e2856f

Browse files
committed
apple.12
Signed-off-by: Cary Phillips <cary@ilm.com>
1 parent 1c20b05 commit 0e2856f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Imath/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ if (IMATH_INSTALL)
154154
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${IMATH_OUTPUT_SUBDIR}
155155
)
156156

157+
if(APPLE AND IMATH_BUILD_APPLE_FRAMEWORKS)
158+
# Create the Resources symlink at the framework root
159+
install(CODE "
160+
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
161+
Versions/Current/Resources
162+
\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.framework/Resources)
163+
")
164+
endif()
165+
157166
if(BUILD_SHARED_LIBS
158167
AND (NOT "${IMATH_LIB_SUFFIX}" STREQUAL "")
159168
AND IMATH_INSTALL_SYM_LINK

0 commit comments

Comments
 (0)