From 1b358603c274b0546ae27ae021990cfd754de080 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 20 Oct 2020 18:52:53 -0400 Subject: [PATCH] simplify --- cmake/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 981dfb17a3..42e6d12ffb 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -383,8 +383,7 @@ endforeach() option(WITH_SWIG "Build scripting language wrappers with SWIG" OFF) if(WITH_SWIG) get_filename_component(LAMMPS_SWIG_DIR ${LAMMPS_SOURCE_DIR}/../tools/swig ABSOLUTE) - get_filename_component(LAMMPS_SWIG_BIN ${CMAKE_BINARY_DIR}/swig ABSOLUTE) - add_subdirectory(${LAMMPS_SWIG_DIR} ${LAMMPS_SWIG_BIN}) + add_subdirectory(${LAMMPS_SWIG_DIR} swig) endif() set(CMAKE_TUNE_FLAGS "${CMAKE_TUNE_DEFAULT}" CACHE STRING "Compiler and machine specific optimization flags (compilation only)")