[gmx-developers] Bug in gromacs 4.5.4 CMakeLists.txt?

Ake Sandgren ake.sandgren at hpc2n.umu.se
Fri Jun 10 17:54:29 CEST 2011


Hi!

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 at hpc2n.umu.se>




More information about the gromacs.org_gmx-developers mailing list