Skip to content

Commit

Permalink
RH8.1 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Oct 7, 2023
1 parent 885d5b9 commit 7ffd455
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmake/prepackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ if( UNIX)
set(linux_lib64_dir "${CPACK_PREPACKAGE}/lib64")
if (EXISTS "${linux_lib64_dir}" )
message( NOTICE "${linux_lib64_dir} exists...")
file(GLOB lib64_dsos "${linux_lib64_dir}/*.so*")
file( COPY ${linux_lib64_dsos}
DESTINATION "${CPACK_PREPACKAGE}/lib/" )
else()
message( NOTICE "${linux_lib64_dir} does not exist...")
endif()
Expand Down
10 changes: 8 additions & 2 deletions mrv2/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,18 @@ if ( APPLE )
DESTINATION lib
COMPONENT applications )
elseif ( UNIX )

# Install all .so in CMAKE_INSTALL_PREFIX/lib
file( GLOB MRV_LIB_DSOS ${CMAKE_INSTALL_PREFIX}/lib/*.so* )
file( GLOB MRV_LIB64_DSOS ${CMAKE_INSTALL_PREFIX}/lib64/*.so* )
install( FILES ${MRV_LIB_DSOS} ${MRV_LIB64_DSOS}
install( FILES ${MRV_LIB_DSOS}
DESTINATION lib
COMPONENT applications )

# For RedHat and Rocky Linux, we must install also lib64
file( GLOB MRV_LIB64_DSOS ${CMAKE_INSTALL_PREFIX}/lib64/*.so* )
install( FILES ${MRV_LIB64_DSOS}
DESTINATION lib64
COMPONENT applications )
elseif(WIN32)
#
# Handle python DLL and libs and TCL
Expand Down

0 comments on commit 7ffd455

Please sign in to comment.