forked from lijiext/lammps
fix typo an reorder
This commit is contained in:
parent
1677b76b6c
commit
4d9781f9b6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue