From 985a88676745f6f68af161a6aba693210796ff7d Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Mon, 1 Jan 2024 19:45:06 -0500 Subject: [PATCH] lmp: Register styles when using CMake (#3097) Fix #3092. --- source/lmp/builtin.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/lmp/builtin.cmake b/source/lmp/builtin.cmake index 507fe7bf1a..f29e9d3319 100644 --- a/source/lmp/builtin.cmake +++ b/source/lmp/builtin.cmake @@ -29,3 +29,7 @@ target_include_directories( ${LAMMPS_SOURCE_DIR}/KSPACE ${LAMMPS_SOURCE_DIR}/EXTRA-FIX) target_compile_definitions( lammps PRIVATE "LAMMPS_VERSION_NUMBER=${LAMMPS_VERSION_NUMBER}") + +# register styles +registerstyles(${CMAKE_CURRENT_LIST_DIR}) +generatestyleheaders(${LAMMPS_STYLE_HEADERS_DIR})