Commit 07a34382 authored by Richard Berger's avatar Richard Berger
Browse files

Magic

Merge branch 'master' into shape_chunk
parents 050a0d4f 90729ebe
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -53,14 +53,14 @@ include(CheckCCompilerFlag)
include(CheckIncludeFileCXX)
include(CheckIncludeFileCXX)


if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -restrict")
  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -restrict -std=c++11")
endif()
endif()


option(DISABLE_CXX11_REQUIREMENT "Disable check that requires C++11 for compiling LAMMPS" OFF)
option(DISABLE_CXX11_REQUIREMENT "Disable check that requires C++11 for compiling LAMMPS" OFF)
if(DISABLE_CXX11_REQUIREMENT)
if(DISABLE_CXX11_REQUIREMENT)
  add_definitions(-DLAMMPS_CXX98)
  add_definitions(-DLAMMPS_CXX98)
else()
# else()
  set(CMAKE_CXX_STANDARD 11)
#  set(CMAKE_CXX_STANDARD 11)
endif()
endif()


# GNU compiler features
# GNU compiler features
@@ -248,6 +248,7 @@ if(BUILD_OMP)
endif()
endif()


if(PKG_MSCG OR PKG_USER-ATC OR PKG_USER-AWPMD OR PKG_USER-QUIP OR PKG_LATTE)
if(PKG_MSCG OR PKG_USER-ATC OR PKG_USER-AWPMD OR PKG_USER-QUIP OR PKG_LATTE)
  enable_language(C)
  find_package(LAPACK)
  find_package(LAPACK)
  find_package(BLAS)
  find_package(BLAS)
  if(NOT LAPACK_FOUND OR NOT BLAS_FOUND)
  if(NOT LAPACK_FOUND OR NOT BLAS_FOUND)
+3 −0
Original line number Original line Diff line number Diff line
if(PKG_MESSAGE)
if(PKG_MESSAGE)
  if(LAMMPS_SIZES STREQUAL BIGBIG)
    message(FATAL_ERROR "The MESSAGE Package is not compatible with -DLAMMPS_BIGBIG")
  endif()
  option(MESSAGE_ZMQ "Use ZeroMQ in MESSAGE package" OFF)
  option(MESSAGE_ZMQ "Use ZeroMQ in MESSAGE package" OFF)
  file(GLOB_RECURSE cslib_SOURCES ${LAMMPS_LIB_SOURCE_DIR}/message/cslib/[^.]*.F
  file(GLOB_RECURSE cslib_SOURCES ${LAMMPS_LIB_SOURCE_DIR}/message/cslib/[^.]*.F
      ${LAMMPS_LIB_SOURCE_DIR}/message/cslib/[^.]*.c
      ${LAMMPS_LIB_SOURCE_DIR}/message/cslib/[^.]*.c
+4 −0
Original line number Original line Diff line number Diff line
if(PKG_USER-MOLFILE)
if(PKG_USER-MOLFILE)
  if (CMAKE_VERSION VERSION_LESS "3.10") # due to INTERFACE without a library
    message(FATAL_ERROR "For configuring USER-MOLFILE you need CMake 3.10 or later")
  endif()

  set(MOLFILE_INCLUDE_DIRS "${LAMMPS_LIB_SOURCE_DIR}/molfile" CACHE STRING "Path to VMD molfile plugin headers")
  set(MOLFILE_INCLUDE_DIRS "${LAMMPS_LIB_SOURCE_DIR}/molfile" CACHE STRING "Path to VMD molfile plugin headers")
  add_library(molfile INTERFACE)
  add_library(molfile INTERFACE)
  target_include_directories(molfile INTERFACE ${MOLFILE_INCLUDE_DIRS})
  target_include_directories(molfile INTERFACE ${MOLFILE_INCLUDE_DIRS})
+2 −2
Original line number Original line Diff line number Diff line
@@ -49,8 +49,8 @@ if(PKG_USER-PLUMED)
    message(STATUS "PLUMED download requested - we will build our own")
    message(STATUS "PLUMED download requested - we will build our own")
    include(ExternalProject)
    include(ExternalProject)
    ExternalProject_Add(plumed_build
    ExternalProject_Add(plumed_build
      URL https://github.com/plumed/plumed2/releases/download/v2.5.2/plumed-src-2.5.2.tgz
      URL https://github.com/plumed/plumed2/releases/download/v2.5.3/plumed-src-2.5.3.tgz
      URL_MD5 bd2f18346c788eb54e1e52f4f6acf41a
      URL_MD5 de30d6e7c2dcc0973298e24a6da24286
      BUILD_IN_SOURCE 1
      BUILD_IN_SOURCE 1
      CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR>
      CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR>
                                               ${CONFIGURE_REQUEST_PIC}
                                               ${CONFIGURE_REQUEST_PIC}
+26 −0
Original line number Original line Diff line number Diff line
@@ -1798,6 +1798,32 @@ Requires installation of the Voro++ library
</tbody>
</tbody>
</table>
</table>


### USER-COLVARS Package

Requires a C++11 compiler to compile with the Lepton library included.

<table>
<thead>
<tr>
  <th>Option</th>
  <th>Description</th>
  <th>Values</th>
</tr>
</thead>
<tbody>
<tr>
  <td><code>COLVARS_LEPTON</code></td>
  <td>Enable the use of the Lepton library inside the Colvars library.
  <td>
  <dl>
    <dt><code>on</code> (default)</dt>
    <dt><code>off</code></dt>
  </dl>
  </td>
</tr>
</tbody>
</table>

### USER-LATTE Package
### USER-LATTE Package


Requires installation of the LATTE library
Requires installation of the LATTE library
Loading