From 6d86697b3ff3a47936a8904959e71da15549da48 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Mon, 21 Aug 2017 10:18:20 -0600 Subject: [PATCH] cmake: move option in user options block --- cmake/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 650308dc93..611f8f1682 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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$<$:_>${LAMMPS_MACHINE})