View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015246CMakeCMakepublic2014-11-11 20:572015-04-06 09:07
ReporterJessica Hamilton 
Assigned ToBrad King 
PlatformHaikuOSHaikuOS VersionR1
Product VersionCMake 3.0 
Target VersionCMake 3.1Fixed in VersionCMake 3.1 
Summary0015246: Make GNUInstallDirs more discoverable in the documentation
DescriptionCMake basically only supports the --prefix option found in configure/autotools based scripts, which leads to users of CMake to hardcode a bunch of paths that are configurable under traditional configure/autotools based projects.

This is a big problem for porting projects using CMake to Haiku, as the paths are different to what is required on Haiku.

For example, pretty much every CMake based project hardcodes @CMAKE_INSTALL_PREFIX@/include all over the place. This location does not exist on Haiku, nor is it searched for.

For autotools based projects, it is a simple matter of specifying --includedir=/boot/system/develop/headers, just as we do for the other locations.

Can CMake please introduce the needed variables to be able to define these locations, so that projects can be updated to use them as they should.

Having to patch/workaround EVERY CMake based project is a nightmare, when the build system should take care of this automatically.
Additional InformationIntroduce variables along the lines of CMAKE_INSTALL_PREFIX:

TagsNo tags attached.
Attached Files


Orion Poplawski (reporter)
2014-11-11 23:14

Have you tried using the GNUInstallDirs module?
Jessica Hamilton (reporter)
2014-11-11 23:50

Hmm, thanks, that seems like it will do the right thing. Shame it's not more integral though, since these doesn't get listed under the cmake variables documentation. So projects may not realise the support exists for doing the correct thing.

E.g. documentation should perhaps mention GNUInstallDirs here: [^]
Domen Vrankar (developer)
2014-11-12 03:00

+1 for extending the documentation (e.g. adding link [^] on this page [^])

I was searching for such functionality there yesterday and did not even know GNUInstallDirs module exists and was intending to write a feature request today - funny coincidence.
Brad King (manager)
2014-11-12 08:35

Re 0015246:0037190: I've updated the documentation sources accordingly:

 Help: Link to GNUInstallDirs from CMAKE_INSTALL_PREFIX;a=commitdiff;h=00d4cdc9 [^]
Brad King (manager)
2014-11-12 09:40

Re 0015246:0037193: I've merged this to the 'release' branch for inclusion in the next 3.1 release candidate. That will cause the 3.1 docs linked in
0015246:0037190 to get this link once they are updated for the release.
Robert Maynard (manager)
2015-04-06 09:07

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-11-11 20:57 Jessica Hamilton New Issue
2014-11-11 23:14 Orion Poplawski Note Added: 0037187
2014-11-11 23:50 Jessica Hamilton Note Added: 0037188
2014-11-12 03:00 Domen Vrankar Note Added: 0037190
2014-11-12 08:35 Brad King Note Added: 0037193
2014-11-12 08:36 Brad King Assigned To => Brad King
2014-11-12 08:36 Brad King Severity feature => text
2014-11-12 08:36 Brad King Status new => assigned
2014-11-12 08:36 Brad King Target Version => CMake 3.1
2014-11-12 08:36 Brad King Summary Better support for autotools directory paths => Make GNUInstallDirs more discoverable in the documentation
2014-11-12 09:40 Brad King Note Added: 0037195
2014-11-12 09:40 Brad King Resolution open => fixed
2014-11-12 09:40 Brad King Fixed in Version => CMake 3.1
2014-11-12 09:40 Brad King Status assigned => resolved
2015-04-06 09:07 Robert Maynard Note Added: 0038442
2015-04-06 09:07 Robert Maynard Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team