From 8f23701352017628333165a704fc5115ae2ca726 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 1 Feb 2025 02:07:01 -0500 Subject: [PATCH] must build plugins on Windows, too. --- unittest/commands/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittest/commands/CMakeLists.txt b/unittest/commands/CMakeLists.txt index 1a9984a20e..ad93740aa7 100644 --- a/unittest/commands/CMakeLists.txt +++ b/unittest/commands/CMakeLists.txt @@ -2,8 +2,8 @@ add_executable(test_simple_commands test_simple_commands.cpp) -# tests for the plugin command require the PLUGIN package and won't work on windows -if((NOT (CMAKE_SYSTEM_NAME STREQUAL "Windows")) AND PKG_PLUGIN) +# tests for the plugin command require the PLUGIN package +if(PKG_PLUGIN) add_subdirectory(${LAMMPS_DIR}/examples/plugins ${CMAKE_BINARY_DIR}/build-plugins) add_dependencies(test_simple_commands plugins) target_compile_definitions(test_simple_commands PRIVATE -DLMP_PLUGIN)