[fixed] CMake option DESIGNER_PLUGIN_LOCATION has no effect

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[fixed] CMake option DESIGNER_PLUGIN_LOCATION has no effect

Post by uwestoehr »

Today I found out by chance how easy it is to build the Qt designer plugin.

While documenting this, I noticed that the path I set in the CMake option DESIGNER_PLUGIN_LOCATION is ignored.

When I set the CMake option BUILD_DESIGNER_PLUGIN the plugin is correctly compiled in the path

Code: Select all

~build folder\src\Tools\plugins\widget\Release
But not transferred to the DESIGNER_PLUGIN_LOCATION path, also not when compiling the INSTALL build target.
Can anybody confirm this?
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: CMake option DESIGNER_PLUGIN_LOCATION ha sno effect

Post by wmayer »

It's because of this: https://cmake.org/cmake/help/latest/com ... stall.html

The install() command is mainly needed on Linux and there it works as expected. On Windows, however, the RUNTIME target must be set.

I will push a fix soon...
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: CMake option DESIGNER_PLUGIN_LOCATION ha sno effect

Post by uwestoehr »

wmayer wrote: Mon May 23, 2022 3:19 pm git commit a4480b4ba7
Thanks!
Post Reply