[cmake-developers] [PATCH] QtDialog: Allow to set CMAKE_SHARE_DIR

Brad King brad.king at kitware.com
Mon Dec 21 09:17:22 EST 2015


On 12/20/2015 05:07 PM, Niels Ole Salscheider wrote:
> This is needed for multiarch layouts where the prefix is /usr/${host} but
> where arch-independet files are installed to /usr/share.

Thanks.  Some of the current install dir options default to `share/...` as
seen in `Source/CMakeInstallDestinations.cmake`.  Many of the corresponding
installed files are also architecture-independent.  The name `CMAKE_SHARE_DIR`
sounds like it intends to replace all uses of `share/` and architecture-
independent files when in fact it is only for gui system integration files.
Can you propose a more-specific name and description for the option?

Also, the `cmake_install_dest_default` function in the bootstrap script depends
on the source code layout in `Source/CMakeInstallDestinations.cmake` and a
"# OTHER" comment.  Please revise and test that the bootstrap script extracts
the matching default.

Thanks,
-Brad


More information about the cmake-developers mailing list