diff --git a/lib/mayaHydra/ufeExtensions/CMakeLists.txt b/lib/mayaHydra/ufeExtensions/CMakeLists.txt index 6d75a6990c..2e5386e457 100644 --- a/lib/mayaHydra/ufeExtensions/CMakeLists.txt +++ b/lib/mayaHydra/ufeExtensions/CMakeLists.txt @@ -34,6 +34,11 @@ mayaHydra_compile_config(${TARGET_NAME}) # ----------------------------------------------------------------------------- target_include_directories(${TARGET_NAME} PUBLIC + ${PXR_INCLUDE_DIRS} +) + +target_include_directories(${TARGET_NAME} + SYSTEM PUBLIC ${MAYA_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/include $<$:${UFE_INCLUDE_DIR}> diff --git a/plugin/mayaHydraSceneBrowserTest/CMakeLists.txt b/plugin/mayaHydraSceneBrowserTest/CMakeLists.txt index e3af443ee1..91d012df02 100644 --- a/plugin/mayaHydraSceneBrowserTest/CMakeLists.txt +++ b/plugin/mayaHydraSceneBrowserTest/CMakeLists.txt @@ -25,8 +25,9 @@ mayaHydra_compile_config(${TARGET_NAME}) # include directories # ----------------------------------------------------------------------------- target_include_directories(${TARGET_NAME} - PUBLIC - ${MAYA_INCLUDE_DIRS} + SYSTEM PUBLIC + ${PXR_INCLUDE_DIRS} + ${MAYA_INCLUDE_DIRS} ) # -----------------------------------------------------------------------------