Skip to content

Commit

Permalink
plugin: improve support on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 23, 2022
1 parent b903e94 commit a4480b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tools/plugins/widget/CMakeLists.txt
Expand Up @@ -59,7 +59,7 @@ target_compile_options(FreeCAD_widgets PRIVATE ${COMPILE_OPTIONS})
# Get the install location of a plugin to determine the path to designer plguins
get_target_property(QMAKE_EXECUTABLE Qt5::qmake LOCATION)
exec_program(${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_PLUGINS" RETURN_VALUE return_code OUTPUT_VARIABLE DEFAULT_QT_PLUGINS_DIR )
set(DESIGNER_PLUGIN_LOCATION ${DEFAULT_QT_PLUGINS_DIR}/designer CACHE FILEPATH "Path where the plugin will be installed to")
set(DESIGNER_PLUGIN_LOCATION ${DEFAULT_QT_PLUGINS_DIR}/designer CACHE PATH "Path where the plugin will be installed to")

if (NOT IS_SUB_PROJECT)
message(STATUS "Plugin will be installed to: ${DESIGNER_PLUGIN_LOCATION}")
Expand All @@ -69,5 +69,6 @@ endif()


INSTALL(TARGETS FreeCAD_widgets
RUNTIME DESTINATION "$ENV{DESTDIR}${DESIGNER_PLUGIN_LOCATION}"
LIBRARY DESTINATION "$ENV{DESTDIR}${DESIGNER_PLUGIN_LOCATION}"
)

0 comments on commit a4480b4

Please sign in to comment.