[CMake] Problem with CMake-3.0.0-rc4 + Ninja + Intel C++
Thompson, K T
kgt at lanl.gov
Fri May 9 13:56:16 EDT 2014
There seems to be an issue with the Ninja generator in CMake-3.0.0-rc4 when $CXX points to the Intel C++ compiler (on Linux). Can anyone confirm this deficiency?
Here is my reproducer:
# CMakeLists.txt
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT( hw CXX )
add_executable( hw hw.cc )
// hw.cc
#include <iostream>
int main() {
std::cout << "Hello" << std::endl; return 0; }
% cmake -G Ninja .
-- The CXX compiler identification is Intel 14.0.2.20140120
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- broken
CMake Error at .../cmake-3.0.0-rc4-Linux-i386/share/cmake-3.0/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/ccs/opt/x86_64/intel-13-sp1.2.144/bin/icpc" is not able
to compile a simple test program.
...
ninja: fatal: unknown deps type 'msvc'
...
The "Unix Makefiles" generator works fine with the same environment and compiler. The Ninja generator works for CXX=g++.
-kt
-----
Kelly (KT) Thompson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140509/3ad6469c/attachment.html>
More information about the CMake
mailing list