From 91cfe90aa342053fed69224bbe1638f4e8563b84 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 11 Jan 2023 01:09:54 -0500 Subject: [PATCH] add missing tracking of updated file lists from globbing in the LEPTON package --- cmake/CMakeLists.txt | 4 ++-- cmake/Modules/Packages/LEPTON.cmake | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index ee7b5dc1f9..7c43b2514f 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -168,8 +168,8 @@ endif() ######################################################################## # User input options # ######################################################################## -# set path to python interpreter and thus enforcing python version if -# when in a virtual environment and PYTHON_EXECUTABLE is not set on command line +# set path to python interpreter and thus enforcing python version when +# in a virtual environment and PYTHON_EXECUTABLE is not set on command line if(DEFINED ENV{VIRTUAL_ENV} AND NOT PYTHON_EXECUTABLE) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") set(PYTHON_EXECUTABLE "$ENV{VIRTUAL_ENV}/Scripts/python.exe") diff --git a/cmake/Modules/Packages/LEPTON.cmake b/cmake/Modules/Packages/LEPTON.cmake index df8a201c6b..33e14d092c 100644 --- a/cmake/Modules/Packages/LEPTON.cmake +++ b/cmake/Modules/Packages/LEPTON.cmake @@ -4,7 +4,7 @@ if(LEPTON_SOURCE_DIR) endif() set(LEPTON_SOURCE_DIR ${LAMMPS_LIB_SOURCE_DIR}/lepton) -file(GLOB LEPTON_SOURCES ${LEPTON_SOURCE_DIR}/src/[^.]*.cpp) +file(GLOB LEPTON_SOURCES ${CONFIGURE_DEPENDS} ${LEPTON_SOURCE_DIR}/src/[^.]*.cpp) if((CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "amd64") OR (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64") OR @@ -15,7 +15,7 @@ else() endif() if(LEPTON_ENABLE_JIT) - file(GLOB ASMJIT_SOURCES ${LEPTON_SOURCE_DIR}/asmjit/*/[^.]*.cpp) + file(GLOB ASMJIT_SOURCES ${CONFIGURE_DEPENDS} ${LEPTON_SOURCE_DIR}/asmjit/*/[^.]*.cpp) endif() add_library(lepton STATIC ${LEPTON_SOURCES} ${ASMJIT_SOURCES})