c++ - CMake: The C compiler identification is unknown -
i trying build project cmake 2.8.12 visual studio 10 in 32bit architecture. getting these error , cmake unable create project. can please suggest me solution. thanks.
this error showing in cmake-gui window:
cmake error @ c:/program files (x86)/cmake 2.8/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:446 (execute_process): execute_process given command argument 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:3 (project) c compiler identification unknown cmake error @ c:/program files (x86)/cmake 2.8/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:446 (execute_process): execute_process given command argument 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:3 (project) cxx compiler identification unknown not find pkgconfig (missing: pkg_config_executable)
- remove cmake cache
- start
visual studio 10 (win32) command prompt
- verify
cl
command works - generate
cmake -g "visual studio 10" ...
Comments
Post a Comment