Skip to content

Commit

Permalink
Don't emit the configuration for a monolithic build
Browse files Browse the repository at this point in the history
  • Loading branch information
meshula committed Mar 9, 2019
1 parent 046d0e6 commit 6b5e95e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/macros/Private.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1278,8 +1278,8 @@ function(_pxr_library NAME)
DESTINATION ${headerInstallPrefix}
)
endif()
else()
if(BUILD_SHARED_LIBS AND NOT PXR_BUILD_MONOLITHIC)
elseif(NOT PXR_BUILD_MONOLITHIC)
if(BUILD_SHARED_LIBS)
install(
TARGETS ${NAME}
EXPORT pxrTargets
Expand Down
4 changes: 3 additions & 1 deletion pxr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ install(FILES
DESTINATION "${CMAKE_INSTALL_PREFIX}"
)

install(EXPORT pxrTargets DESTINATION "cmake")
if (NOT PXR_BUILD_MONOLITHIC)
install(EXPORT pxrTargets DESTINATION "cmake")
endif()

0 comments on commit 6b5e95e

Please sign in to comment.