CMake files land in unexpected location
Author: jfpanissetCreated Sep 3, 2026Updated Sep 17, 2026
In pxr/CMakeLists.txt:
configure_file(pxrConfig.cmake.in
"${PROJECT_BINARY_DIR}/pxrConfig.cmake" @ONLY)
install(FILES
"${PROJECT_BINARY_DIR}/pxrConfig.cmake"
DESTINATION "${CMAKE_INSTALL_PREFIX}"
)
install(EXPORT pxrTargets DESTINATION "cmake")When building and installing OpenUSD in /usr/local/ for instance, this means you end up with:
/usr/local/pxrConfig.cmake
/usr/local/cmake/pxrTargets-release.cmake
/usr/local/cmake/pxrTargets.cmakeA more expected location would be something like:
/usr/local/lib/cmake/pxr/Source: PixarAnimationStudios/OpenUSD