cmake: add_plugin now respects ENABLE_KDB_TESTING
@@ -332,10 +332,10 @@ function (add_plugin PLUGIN_SHORT_NAME)
"${HAS_INSTALL_TEST_DATA}")
endif ()
- if (ARG_TEST_README)
+ if (ARG_TEST_README AND ENABLE_KDB_TESTING)
add_msr_test_plugin (
${PLUGIN_SHORT_NAME} ENVIRONMENT ${ARG_TEST_ENVIRONMENT} REQUIRED_PLUGINS ${ARG_TEST_REQUIRED_PLUGINS})
- endif (ARG_TEST_README)
+ endif (ARG_TEST_README AND ENABLE_KDB_TESTING)
return ()
endif ()
