cmake: move option in user options block

This commit is contained in:
Christoph Junghans 2017-08-21 10:18:20 -06:00
parent 892a3f8609
commit 6d86697b3f
1 changed files with 3 additions and 3 deletions

View File

@ -74,6 +74,9 @@ if(LAMMPS_EXCEPTIONS)
add_definitions(-DLAMMPS_EXCEPTIONS)
endif()
set(LAMMPS_MACHINE "" CACHE STRING "Suffix to append to lmp binary and liblammps")
mark_as_advanced(LAMMPS_MACHINE)
option(CMAKE_VERBOSE_MAKEFILE "Verbose makefile" OFF)
option(ENABLE_TESTING "Enable testing" OFF)
@ -520,9 +523,6 @@ include_directories(${LAMMPS_STYLE_HEADERS_DIR})
###########################################
# Actually add executable and lib to build
############################################
set(LAMMPS_MACHINE "" CACHE STRING "Suffix to append to lmp binary and liblammps")
mark_as_advanced(LAMMPS_MACHINE)
add_library(lammps ${LIB_SOURCES})
target_link_libraries(lammps ${LAMMPS_LINK_LIBS})
set_target_properties(lammps PROPERTIES SOVERSION ${SOVERSION} OUTPUT_NAME lammps$<$<BOOL:${LAMMPS_MACHINE}>:_>${LAMMPS_MACHINE})