[CMake] CMake fails on Win7 x64 with VS 2012

John Drescher drescherjm at gmail.com
Sat Dec 28 09:04:05 EST 2013


On Sat, Dec 28, 2013 at 8:35 AM, Ansis Māliņš <ansis.malins at gmail.com> wrote:
> The minimal CMakeLists.txt with content
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
> PROJECT(CMakeTest)
>
> on CMake 2.8.12.1 on Windows 7 64 bit with Visual Studio 2012 produces the
> result
>
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446
> (execute_process):
>   execute_process given COMMAND argument with no value.
> Call Stack (most recent call first):
>   C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48
> (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
>   C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131
> (CMAKE_DETERMINE_COMPILER_ID)
>   CMakeLists.txt:2 (PROJECT)
>
>
> The C compiler identification is unknown
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446
> (execute_process):
>   execute_process given COMMAND argument with no value.
> Call Stack (most recent call first):
>   C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48
> (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
>   C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127
> (CMAKE_DETERMINE_COMPILER_ID)
>   CMakeLists.txt:2 (PROJECT)
>
>
> The CXX compiler identification is unknown
> Configuring incomplete, errors occurred!
>
> What do?
>

Did you use the correct generator? Remember that Visual Studio 2012 is
Visual Studio 11 not Visual Studio 12.

John


More information about the CMake mailing list