[CMake] Problem with Cmake 3.0.2 and MSVC: devenv.com does not print CMAKE_C_COMPILER=<path_to_cl.exe> during CMakeDetermineCompilerId.cmake

Alessio Massaro masariello at gmail.com
Mon Oct 6 11:34:57 EDT 2014


Hi there,

For some mysterious reason the invocation in subject does not print out the
all-important message CMAKE_C_COMPILER=<path_to_cl.exe> after the
compilation of CompilerIdC.c

The invocation in question is in CMakeDetermnineCompilerId.cmake like 188.
The CMAKE_C_COMPILER message is the one echo'ed by a the
VCPostBuildEventTool action in CompilerIdC.vcproj

I suppose I should send the query to a Microsoft forum, really. But I was
hoping someone would have seen this odd behavior before.

If I build CompilerIdC.vcproj in Visual Studio, then I do see the message
in the build output.

Note that the compilation of CompilerIdC.c does work properly. And so does
the extraction of the compiler ID strings from the executable binary.

I currently have Visual Studio both VS2013 and the Intel C++ compiler
installed on the same machine. Could that be having a nefarious influence?

I'm seeing the same behavior with CMake 2.8.12.

Big thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141006/3075ae70/attachment.html>


More information about the CMake mailing list