diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 5e554a24a..04135cf94 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -159,9 +159,7 @@ macro(createPackage) install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}" PERMISSIONS ${LIBRARY_PERMISSIONS}) else () - if (WIN32) - install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) - elseif (APPLE) + if (APPLE) if (IMHEX_GENERATE_PACKAGE) set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PLUGINS_INSTALL_LOCATION}) else () diff --git a/cmake/modules/ImHexPlugin.cmake b/cmake/modules/ImHexPlugin.cmake index 4244bd64f..66bb67604 100644 --- a/cmake/modules/ImHexPlugin.cmake +++ b/cmake/modules/ImHexPlugin.cmake @@ -13,7 +13,7 @@ macro(add_imhex_plugin) configure_file(${CMAKE_SOURCE_DIR}/dist/web/plugin-bundle.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/plugin-bundle.cpp @ONLY) target_sources(main PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/plugin-bundle.cpp) else() - set(IMHEX_PLUGIN_LIBRARY_TYPE SHARED) + set(IMHEX_PLUGIN_LIBRARY_TYPE MODULE) endif() # Define new project for plugin