[cmake-developers] [CMake 0015017]: Changing compiler/library versions, Finding Packages, and etc.

Mantis Bug Tracker mantis at public.kitware.com
Fri Jul 11 18:24:20 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15017 
====================================================================== 
Reported By:                rhl
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15017
Category:                   (No Category)
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-07-11 18:24 EDT
Last Modified:              2014-07-11 18:24 EDT
====================================================================== 
Summary:                    Changing compiler/library versions, Finding
Packages, and etc.
Description: 
Hi,

I really enjoy using CMake, it takes a lot of redundancy and hassle out of build
systems. Thank you to 
all developers involved :)

I am writing to request the developers to consider making a high level change to
the way that the compilers are chosen and changed as well as packages are added.

It would be great if there was a way (say within ccmake) to selectively choose
which of the many compilers on a system are available, and, when adding packages
via find_package, if some list of the available FindXXX.cmake scripts could be
made conveniently available.  Regularly I am on a system with many compiler
choices ( a modern os/x machine with homebrew will have clang by default, but
gcc installed on the side potentially, or gcc symlinked to clang) and possibly
many library versions. It would be great to be able to selectively choose when
running cmake or ccmake which of these libraries/compilers I want to
compile/link with based on what cmake is able to find when inspecting the
system.

On linux with the environment-modules or like program, many many different
compilers can be available, many flavors of gcc, icc, clang, etc.. I find it a
hassle to have to modify the CMakeLists.txt each time i need to change the
compiler and add/remove specific compiler flags.

I'm sure you are all busy and i'm not sure if anyone else is interested in this,
or some variant of this idea..

At any rate, thanks again for all your hard work.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-07-11 18:24 rhl            New Issue                                    
======================================================================



More information about the cmake-developers mailing list