CMake unable to determine linker language with C++

后端 未结 10 1712
野趣味
野趣味 2020-11-28 06:41

I\'m attempting to run a cmake hello world program on Windows 7 x64 with both Visual Studio 2010 and Cygwin, but can\'t seem to get either to work. My directory structure is

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 07:18

    Try changing

    PROJECT(HelloWorld C)
    

    into

    PROJECT(HelloWorld C CXX)
    

    or just

    PROJECT(HelloWorld)
    

    See: http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:project

提交回复
热议问题