must build plugins on Windows, too.

This commit is contained in:
Axel Kohlmeyer
2025-02-01 02:07:01 -05:00
parent ebf81c0363
commit 8f23701352

View File

@ -2,8 +2,8 @@
add_executable(test_simple_commands test_simple_commands.cpp) add_executable(test_simple_commands test_simple_commands.cpp)
# tests for the plugin command require the PLUGIN package and won't work on windows # tests for the plugin command require the PLUGIN package
if((NOT (CMAKE_SYSTEM_NAME STREQUAL "Windows")) AND PKG_PLUGIN) if(PKG_PLUGIN)
add_subdirectory(${LAMMPS_DIR}/examples/plugins ${CMAKE_BINARY_DIR}/build-plugins) add_subdirectory(${LAMMPS_DIR}/examples/plugins ${CMAKE_BINARY_DIR}/build-plugins)
add_dependencies(test_simple_commands plugins) add_dependencies(test_simple_commands plugins)
target_compile_definitions(test_simple_commands PRIVATE -DLMP_PLUGIN) target_compile_definitions(test_simple_commands PRIVATE -DLMP_PLUGIN)