From 2f14441ef06d3955bd8aa63ee54d4043112eb110 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 23 May 2022 17:18:18 +0200 Subject: [PATCH] plugin: improve support on Windows --- src/Tools/plugins/widget/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tools/plugins/widget/CMakeLists.txt b/src/Tools/plugins/widget/CMakeLists.txt index 806f28049d..ba6a25d437 100644 --- a/src/Tools/plugins/widget/CMakeLists.txt +++ b/src/Tools/plugins/widget/CMakeLists.txt @@ -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}") @@ -69,5 +69,6 @@ endif() INSTALL(TARGETS FreeCAD_widgets + RUNTIME DESTINATION "$ENV{DESTDIR}${DESIGNER_PLUGIN_LOCATION}" LIBRARY DESTINATION "$ENV{DESTDIR}${DESIGNER_PLUGIN_LOCATION}" )