From 547153ba93755b1c7079f6e4599e3a4a2a51264d Mon Sep 17 00:00:00 2001 From: David Lanier Date: Fri, 26 Jan 2024 10:29:49 +0100 Subject: [PATCH] Fix MayaUsd_FOUND not being written correctly. --- cmake/modules/FindMayaUsd.cmake | 4 ++-- cmake/test.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/modules/FindMayaUsd.cmake b/cmake/modules/FindMayaUsd.cmake index aac9cac4a9..953f523d3e 100644 --- a/cmake/modules/FindMayaUsd.cmake +++ b/cmake/modules/FindMayaUsd.cmake @@ -42,7 +42,7 @@ find_path(MAYAUSD_MOD_PATH ) -# Handle the QUIETLY and REQUIRED arguments and set MAYAUSD_FOUND to TRUE if +# Handle the QUIETLY and REQUIRED arguments and set MayaUsd_FOUND to TRUE if # all listed variables are TRUE. include(FindPackageHandleStandardArgs) @@ -52,7 +52,7 @@ find_package_handle_standard_args(MAYAUSD MAYAUSDAPI_LIBRARY ) -if(MAYAUSD_FOUND) +if(MayaUsd_FOUND) message(STATUS "MayaUsd found : ${MAYAUSD_LOCATION}") message(STATUS "MayaUsd include dir: ${MAYAUSD_INCLUDE_DIR}") message(STATUS "MayaUsdAPI library fullpath : ${MAYAUSDAPI_LIBRARY}") diff --git a/cmake/test.cmake b/cmake/test.cmake index 40fd3eba2c..c750582a81 100644 --- a/cmake/test.cmake +++ b/cmake/test.cmake @@ -1,6 +1,6 @@ set(MAYA_USD_DIR ${CMAKE_CURRENT_SOURCE_DIR}) -if(MAYAUSD_FOUND) +if(MayaUsd_FOUND) #Add MAYAUSD_MOD_PATH (the path where maya USD .mod file is) to the MAYA_MODULE_PATH # Get the current value of the environment variable set(CURRENT_MAYA_MODULE_PATH $ENV{MAYA_MODULE_PATH})