Skip to content

Commit

Permalink
Attempt in fixing compilation problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanierd-adsk committed Jan 23, 2024
1 parent b378b2e commit a5832e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ else()
message(STATUS "UFE not found.")
endif()

find_package(MayaUsd OPTIONAL_COMPONENTS)
if(MayaUsd_FOUND)
find_package(MAYAUSD OPTIONAL_COMPONENTS)
if(MAYAUSD_FOUND)
message(STATUS "Building with MayaUsd.")
else()
message(STATUS "MayaUsd not used to build.")
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/mayaHydra/hydraExtensions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ set(HEADERS
target_compile_definitions(${TARGET_NAME}
PRIVATE
MAYAHYDRALIB_EXPORT
$<$<BOOL:${MayaUsd_FOUND}>:MAYAHYDRALIB_MAYAUSD_ENABLED>
$<$<BOOL:${MAYAUSD_FOUND}>:MAYAHYDRALIB_MAYAUSD_ENABLED>
$<$<BOOL:${IS_MACOSX}>:OSMac_>
# Copy-pasted from lib/mayaUsd/CMakeLists.txt
)
Expand All @@ -52,7 +52,7 @@ target_include_directories(${TARGET_NAME}
${CMAKE_BINARY_DIR}/include
PRIVATE
$<$<BOOL:${UFE_FOUND}>:${UFE_INCLUDE_DIR}>
$<$<BOOL:${MayaUsd_FOUND}>:${MAYAUSD_INCLUDE_DIR}>
$<$<BOOL:${MAYAUSD_FOUND}>:${MAYAUSD_INCLUDE_DIR}>
)

target_compile_definitions(${TARGET_NAME}
Expand Down Expand Up @@ -123,7 +123,7 @@ target_link_libraries(${TARGET_NAME}
$<$<BOOL:${USD_001905_BUILD}>:hio>
${PYTHON_LIBRARIES}
$<$<BOOL:${UFE_FOUND}>:${UFE_LIBRARY}>
$<$<BOOL:${MayaUsd_FOUND}>:${MAYAUSDAPI_LIBRARY}>
$<$<BOOL:${MAYAUSD_FOUND}>:${MAYAUSDAPI_LIBRARY}>
)

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

0 comments on commit a5832e0

Please sign in to comment.