diff --git a/CMakeLists.txt b/CMakeLists.txt index 07cd2557c7..f747251dec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.") diff --git a/cmake/modules/FindMayaUsd.cmake b/cmake/modules/FindMAYAUSD.cmake similarity index 100% rename from cmake/modules/FindMayaUsd.cmake rename to cmake/modules/FindMAYAUSD.cmake diff --git a/lib/mayaHydra/hydraExtensions/CMakeLists.txt b/lib/mayaHydra/hydraExtensions/CMakeLists.txt index 5d836ba494..f8da1bc7cd 100644 --- a/lib/mayaHydra/hydraExtensions/CMakeLists.txt +++ b/lib/mayaHydra/hydraExtensions/CMakeLists.txt @@ -33,7 +33,7 @@ set(HEADERS target_compile_definitions(${TARGET_NAME} PRIVATE MAYAHYDRALIB_EXPORT - $<$:MAYAHYDRALIB_MAYAUSD_ENABLED> + $<$:MAYAHYDRALIB_MAYAUSD_ENABLED> $<$:OSMac_> # Copy-pasted from lib/mayaUsd/CMakeLists.txt ) @@ -52,7 +52,7 @@ target_include_directories(${TARGET_NAME} ${CMAKE_BINARY_DIR}/include PRIVATE $<$:${UFE_INCLUDE_DIR}> - $<$:${MAYAUSD_INCLUDE_DIR}> + $<$:${MAYAUSD_INCLUDE_DIR}> ) target_compile_definitions(${TARGET_NAME} @@ -123,7 +123,7 @@ target_link_libraries(${TARGET_NAME} $<$:hio> ${PYTHON_LIBRARIES} $<$:${UFE_LIBRARY}> - $<$:${MAYAUSDAPI_LIBRARY}> + $<$:${MAYAUSDAPI_LIBRARY}> ) # -----------------------------------------------------------------------------