Bug #763
MPI installation puts libgmx_mpi.so.6 in wrong directory
Description
Report submitted by Ake Sandgren (http://lists.gromacs.org/pipermail/gmx-developers/2011-June/005273.html):
In the top level CMakeLists.txt you have this:- Specify install locations and which subdirectories to process #
########################################################################
if ( DEFINED LIB )
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${LIB}")
else()
set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
endif()
set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)
When one build with MPI LIB gets defined in cmake/FindMPI.cmake to an
empty string, i.e. after the "foreach(LIB ${MPI_LIBNAMES})" loop
finishes.
This results in installing libgmx_mpi.so.6 and friends one dir too high.
I don't see any reasonable use for the "if (DEFINED LIB )" stuff.
-- Ake Sandgren <ake.sandgren@hpc2n.umu.se>
Associated revisions
History
#1 Updated by Christoph Junghans over 9 years ago
- Assignee set to Christoph Junghans
- Target version set to 4.5.5
- Estimated time set to 1.00 h
the LIB variable is needed for packaging (on x86_64 suse installs the libs under /usr/lib64/, but debian under /usr/lib/).
I would just rename LIB to GMXLIB (GMXLIBDIR is already taken) as I don't want to change the default FindMPI check. Any objections?
#2 Updated by Christoph Junghans over 9 years ago
- Status changed from New to Closed
fixed in commit 3475daaed35f9349f
cmake: rename LIB to GMXLIB to avoid conflict with FindMPI.cmake