From fae585461eb257c4d0b81685cb9e45df0e9efa8b Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Fri, 29 Dec 2023 19:50:47 -0500 Subject: [PATCH] lmp: Register styles when using CMake 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})