Unverified Commit 4d9781f9 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix typo an reorder

parent 1677b76b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -17,13 +17,13 @@ if(ENABLE_TESTING)
  set(MEMORYCHECK_COMMAND_OPTIONS "${VALGRIND_DEFAULT_OPTIONS}" CACHE STRING "Memory Check Command Options")

  # check if a faster linker is available
  if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
    include(CheckCXXCompilerFlag)
    check_cxx_compiler_flag(-fuse-ld=lld HAVE_LLD_LINKER)
    check_cxx_compiler_flag(-fuse-ld=gold HAVE_GOLD_LINKER)
  if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
    if(HAVE_LLD_LINKER)
      target_link_options(lammps PUBLIC -fuse-ld=lld)
    elseif(HAVE_OLD_LINKER)
    elseif(HAVE_GOLD_LINKER)
      target_link_options(lammps PUBLIC -fuse-ld=gold)
    endif()
  endif()