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
--
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://www.cmake.org/mailman/listinfo/cmake