fix typo an reorder

This commit is contained in:
Axel Kohlmeyer 2020-07-29 11:10:14 -04:00
parent 1677b76b6c
commit 4d9781f9b6
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 4 additions and 4 deletions

View File

@ -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()