MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015246 | CMake | CMake | public | 2014-11-11 20:57 | 2015-04-06 09:07 |
|
Reporter | Jessica Hamilton | |
Assigned To | Brad King | |
Priority | normal | Severity | text | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | Haiku | OS | Haiku | OS Version | R1 |
Product Version | CMake 3.0 | |
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | |
|
Summary | 0015246: Make GNUInstallDirs more discoverable in the documentation |
Description | CMake 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. |
Steps To Reproduce | |
Additional Information | Introduce variables along the lines of CMAKE_INSTALL_PREFIX:
- CMAKE_INSTALL_BINDIR
- CMAKE_INSTALL_LIBDIR
- CMAKE_INSTALL_INCLUDEDIR
|
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
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 |
Notes |
|
(0037187)
|
Orion Poplawski
|
2014-11-11 23:14
|
|
Have you tried using the GNUInstallDirs module? |
|
|
(0037188)
|
Jessica Hamilton
|
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: http://www.cmake.org/cmake/help/v3.1/manual/cmake-variables.7.html [^] |
|
|
(0037190)
|
Domen Vrankar
|
2014-11-12 03:00
|
|
|
|
(0037193)
|
Brad King
|
2014-11-12 08:35
|
|
|
|
(0037195)
|
Brad King
|
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.
|
|
|
(0038442)
|
Robert Maynard
|
2015-04-06 09:07
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|