Skip to content

Commit

Permalink
some more cmake changes to get include order right
Browse files Browse the repository at this point in the history
  • Loading branch information
roopavr-adsk committed Jul 30, 2024
1 parent 6fae551 commit 2f60b74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/mayaHydra/ufeExtensions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<$<BOOL:${UFE_FOUND}>:${UFE_INCLUDE_DIR}>
Expand Down
5 changes: 3 additions & 2 deletions plugin/mayaHydraSceneBrowserTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 2f60b74

Please sign in to comment.