Unverified Commit 392b32ef authored by Christoph Junghans's avatar Christoph Junghans Committed by GitHub
Browse files

cmake: fix warning about chain.x

parent a57f6f58
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -588,8 +588,9 @@ if(BUILD_TOOLS)
  install(TARGETS binary2txt DESTINATION ${CMAKE_INSTALL_BINDIR})

  # ninja-build currently does not support fortran. thus we skip building this tool
  if(NOT CMAKE_GENERATOR STREQUAL "Ninja")
  if(CMAKE_GENERATOR STREQUAL "Ninja")
    message(STATUS "Skipping building 'chain.x' with Ninja build tool due to lack of Fortran support")
  else()
    enable_language(Fortran)
    add_executable(chain.x ${LAMMPS_TOOLS_DIR}/chain.f)
    target_link_libraries(chain.x ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES})