[cmake-developers] [CMake 0015156]: Sometime, CMake can't find clang/clang++
Mantis Bug Tracker
mantis at public.kitware.com
Sun Sep 14 08:33:04 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15156
======================================================================
Reported By: Meng-Yuan Huang
Assigned To:
======================================================================
Project: CMake
Issue ID: 15156
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-09-14 08:33 EDT
Last Modified: 2014-09-14 08:33 EDT
======================================================================
Summary: Sometime, CMake can't find clang/clang++
Description:
I have a CMake C++ project, test. I want to build it by clang/clang++ on CentOS
6.5. I run cmake by this command line:
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .
Unfortunately, sometime, cmake said it can't find clang/clang++.
Strangely, if I run the command line again, it becomes to able to find them.
Strangely again, if run the command line again, it becomes to not able to find
them.
...
If cmake can find clang/clang++, then running make will invoke clang/clang++.
Otherwise, if cmake can't find clang/clang++, then running make will invoke
gcc/g++.
I recorded a video to show the problem:
http://1drv.ms/1uwXVek
Please fix this problem.
CMake 3.0.2 also has a similar but different problem as 2.8.12.
Steps to Reproduce:
1. Download the attached test project, test.tar.gz and extract it.
2. Run cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .
for several times and inspect the cmake output messages.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-09-14 08:33 Meng-Yuan HuangNew Issue
2014-09-14 08:33 Meng-Yuan HuangFile Added: test.tar.gz
======================================================================
More information about the cmake-developers
mailing list