-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GNUInstallDirs to set installation locations #5497
base: master
Are you sure you want to change the base?
Conversation
The use of GNUInstallDirs ensures, the files are installed in common locations on all platforms. Closes: PointCloudLibrary#5496 Signed-off-by: Bernd Waibel <[email protected]>
I'm not that known to linux directory structure, but it seems to be the default to use GNUInstallDirs. So looks good to me. |
This change would be nice to get merged, as using GNUInstallDirs simplifies the split output story for packaging in Nix. One additional piece could be to eliminate the use of the Lines 408 to 426 in aa7c679
Rather than assuming the built libraries are relative to some common root in the installed case, as this line does:
I believe it would be preferred to use the See: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html |
@jspricke and @UnaNancyOwen Can you chime in on this change how it would work on debian and windows? |
@larshg I checked this changes. It almost works fine on Windows and All-in-one Installer! 👍 For one thing from me, the installation directory path of the documentations seems to be just a little different from the path required by the generate script for all-in-one installer. Therefore, the link set by installer is broken. Perhaps, it should be corrected on these lines. pcl/cmake/cpack_options.cmake.in Lines 18 to 22 in 18fe557
set(CPACK_NSIS_MENU_LINKS
- "share/doc/pcl-@PCL_VERSION_MAJOR@.@PCL_VERSION_MINOR@/tutorials/html/index.html" "Tutorials"
- "share/doc/pcl-@PCL_VERSION_MAJOR@.@PCL_VERSION_MINOR@/tutorials/html/sources" "Tutorials sources"
- "share/doc/pcl-@PCL_VERSION_MAJOR@.@PCL_VERSION_MINOR@/html/pcl-@PCL_VERSION_MAJOR@.@[email protected]" "Documentation"
+ "share/doc/PCL/tutorials/html/index.html" "Tutorials"
+ "share/doc/PCL/tutorials/html/sources" "Tutorials sources"
+ "share/doc/PCL/html/pcl-@PCL_VERSION_MAJOR@.@[email protected]" "Documentation"
"http://www.pointclouds.org" "PCL Website") |
fine with me. |
The use of GNUInstallDirs ensures, the files are installed in common locations on all platforms.
Closes: #5496
Signed-off-by: Bernd Waibel [email protected]