[cmake-developers] [CMake 0015246]: Better support for autotools directory paths
Mantis Bug Tracker
mantis at public.kitware.com
Tue Nov 11 20:57:33 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15246
======================================================================
Reported By: Jessica Hamilton
Assigned To:
======================================================================
Project: CMake
Issue ID: 15246
Category: CMake
Reproducibility: always
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-11-11 20:57 EST
Last Modified: 2014-11-11 20:57 EST
======================================================================
Summary: Better support for autotools directory paths
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.
Additional Information:
Introduce variables along the lines of CMAKE_INSTALL_PREFIX:
- CMAKE_INSTALL_BINDIR
- CMAKE_INSTALL_LIBDIR
- CMAKE_INSTALL_INCLUDEDIR
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-11-11 20:57 Jessica HamiltonNew Issue
======================================================================
More information about the cmake-developers
mailing list