We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c20b05 commit 0e2856fCopy full SHA for 0e2856f
1 file changed
src/Imath/CMakeLists.txt
@@ -154,6 +154,15 @@ if (IMATH_INSTALL)
154
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${IMATH_OUTPUT_SUBDIR}
155
)
156
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
+
166
if(BUILD_SHARED_LIBS
167
AND (NOT "${IMATH_LIB_SUFFIX}" STREQUAL "")
168
AND IMATH_INSTALL_SYM_LINK
0 commit comments