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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
