mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-26 21:40:07 +00:00
Fix build of Metal examples when also building GL
This fixes the build when trying to build both the Metal examples and the GL examples in the same build. The change is an unfortunate consequence of how dependencies are bundled together in examples/common and a future task is needed to split up these dependencies. The same workaround exists in the DirectX examples as well and would also benefit from splitting up the dependencies.
This commit is contained in:
parent
6ff680f34e
commit
0f2dd41f0a
@ -61,6 +61,13 @@ else()
|
|||||||
set_source_files_properties("${BUNDLE_FILES}" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
set_source_files_properties("${BUNDLE_FILES}" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# XXX: This is unfortunate, we should probably refactor examples_common_obj
|
||||||
|
# to separate out the GL from the Metal dependencies so that we don't end up
|
||||||
|
# in the situation where we have to link in GLFW for mtlViewer.
|
||||||
|
if (GLFW_FOUND)
|
||||||
|
list(APPEND PLATFORM_LIBRARIES "${GLFW_LIBRARIES}")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"${OPENSUBDIV_INCLUDE_DIR}"
|
"${OPENSUBDIV_INCLUDE_DIR}"
|
||||||
"${METAL_INCLUDE_DIR}"
|
"${METAL_INCLUDE_DIR}"
|
||||||
|
@ -60,6 +60,13 @@ else()
|
|||||||
set_source_files_properties("${BUNDLE_FILES}" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
set_source_files_properties("${BUNDLE_FILES}" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# XXX: This is unfortunate, we should probably refactor examples_common_obj
|
||||||
|
# to separate out the GL from the Metal dependencies so that we don't end up
|
||||||
|
# in the situation where we have to link in GLFW for mtlViewer.
|
||||||
|
if (GLFW_FOUND)
|
||||||
|
list(APPEND PLATFORM_LIBRARIES "${GLFW_LIBRARIES}")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"${OPENSUBDIV_INCLUDE_DIR}"
|
"${OPENSUBDIV_INCLUDE_DIR}"
|
||||||
"${METAL_INCLUDE_DIR}"
|
"${METAL_INCLUDE_DIR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user