From ee120ba9364028a8ee15fda0c37d5c88d2b39349 Mon Sep 17 00:00:00 2001 From: Mathieu Westphal Date: Sun, 26 Jan 2025 19:44:13 +0100 Subject: [PATCH] fixup --- plugins/usd/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/usd/CMakeLists.txt b/plugins/usd/CMakeLists.txt index 4eec210953..b7c0c12008 100644 --- a/plugins/usd/CMakeLists.txt +++ b/plugins/usd/CMakeLists.txt @@ -11,9 +11,13 @@ else() include(${CMAKE_SOURCE_DIR}/cmake/f3dPlugin.cmake) endif() -find_package(pxr 24.08 REQUIRED) +find_package(pxr REQUIRED) -message(STATUS "Plugin: USD found") +if("${PXR_VERSION}" VERSION_LESS "2408") + message(FATAL_ERROR "Plugin: USD: ${PXR_VERSION} is not supported by F3D, please update your USD installation.") +endif() + +message(STATUS "Plugin: USD ${PXR_VERSION} found") f3d_plugin_init()