[cmake-developers] [CMake 0013619]: cmake 2.8.10-rc3: gcc which is placed in PATH is not used but the system compiler

Mantis Bug Tracker mantis at public.kitware.com
Tue Oct 30 13:15:17 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13619 
====================================================================== 
Reported By:                Michael Bachmann
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13619
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2012-10-30 13:15 EDT
Last Modified:              2012-10-30 13:15 EDT
====================================================================== 
Summary:                    cmake 2.8.10-rc3: gcc which is placed in PATH is not
used but the system compiler
Description: 
e.g.: gcc 4.5.2 executable is situated under:
/opt/gcc-4.5.2/bin/gcc

gcc 3.4.6 executable is situated under:
/usr/bin/gcc

the PATH environment variable is set as follows:
export PATH=/opt/gcc-4.5.2/bin:/usr/bin:$PATH

=> executing "which gcc" prints "/opt/gcc-4.5.2/bin/gcc"


Steps to Reproduce: 
Using cmake (2.8.10-rc3) gcc 3.4.6 is configured when executing:
cmake ../mysrc

Using cmake-gui (2.8.10-rc3) gcc 4.5.2 is configured when executing:
cmake-gui ../mysrc


In previous releases cmake and cmake-gui used both gcc 4.5.2 during
configuration (the gcc executable which is found first via the PATH variable)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-10-30 13:15 Michael BachmannNew Issue                                    
======================================================================




More information about the cmake-developers mailing list