This website requires JavaScript.
Explore
Help
Sign In
haskal
/
kicad
Watch
1
Star
0
Fork
You've already forked kicad
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
e92f58bb4f
kicad
/
3d-viewer
/
3d_plugin_dir.h.in
2 lines
48 B
C
Raw
Normal View
History
Unescape
Escape
Use absolute path CMAKE_INSTALL_FULL_LIBDIR for 3d viewer PLUGINDIR Currently, the plugindir in the plugin manager is constructed as {CMAKE_INSTALL_PREFIX}/bin/../{CMAKE_INSTALL_LIBDIR}/kicad/..., while CMakes install uses {CMAKE_INSTALL_LIBDIR}/kicad/... In case CMAKE_INSTALL_LIBDIR is a relative path "install" prefixes it with CMAKE_INSTALL_PREFIX and both paths happen to match, otherwise the constructed path ends up as e.g. "/usr/bin/../usr/lib/kicad/...". For these cases where an absolute path is wanted CMake provides the CMAKE_INSTALL_FULL_<dir> variants which works the same as CMAKE_INSTALL_<dir> when used as DIRECTORY for install.
2018-10-09 15:35:55 +00:00
#
define PLUGINDIR "@CMAKE_INSTALL_FULL_LIBDIR@"