diff --git a/doc/plugins.example/CMakeLists.txt b/doc/plugins.example/CMakeLists.txt index d83ef30c9e..26e3ad25c9 100644 --- a/doc/plugins.example/CMakeLists.txt +++ b/doc/plugins.example/CMakeLists.txt @@ -52,8 +52,8 @@ install(TARGETS hello # This custom target installs the plugin to the plugin dir in WiresharkConfig.cmake. # It does not use CMAKE_INSTALL_PREFIX. add_custom_target(copy_plugin - COMMAND ${CMAKE_COMMAND} -E copy $ ${Wireshark_PLUGIN_INSTALL_DIR} - COMMENT "Installing plugin to: ${Wireshark_PLUGIN_INSTALL_DIR}" + COMMAND ${CMAKE_COMMAND} -E copy $ "${Wireshark_PLUGIN_INSTALL_DIR}/epan" + COMMENT "Installing plugin to: ${Wireshark_PLUGIN_INSTALL_DIR}/epan" ) string(TOLOWER "${PROJECT_NAME}-${PROJECT_VERSION}" _pkgname)