Project

General

Profile

Bug #763

MPI installation puts libgmx_mpi.so.6 in wrong directory

Added by Rossen Apostolov over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

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:
  1. 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 <>

Associated revisions

Revision 3475daae (diff)
Added by Christoph Junghans over 8 years ago

cmake: rename LIB to GMXLIB to avoid conflict with FindMPI.cmake

IssueID #763

History

#1 Updated by Christoph Junghans over 8 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 8 years ago

  • Status changed from New to Closed

fixed in commit 3475daaed35f9349f

Also available in: Atom PDF