Unverified Commit 108b9a0a authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

USER-MOLFILE cannot be configured with CMake 2.8.12, requiring 3.10.

parent 9a4f208e
Loading
Loading
Loading
Loading
+4 −0
Changes for cmake/Modules/Packages/USER-MOLFILE.cmake: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
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")
  add_library(molfile INTERFACE)
  target_include_directories(molfile INTERFACE ${MOLFILE_INCLUDE_DIRS})