I’m trying to create a C++ project. I would like to use CMake, but when I create a directory and CMakeLists.txt file and I try to run:
**C:\Prog> cmake -G “MSYS Makefiles”
I doesn’t able to finish the buliding and the output is:
– The C compiler identification is GNU 12.1.0
– The CXX compiler identification is GNU 12.1.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - failed
– Check for working C compiler: C:/msys64/mingw64/bin/cc.exe
– Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"C:/msys64/mingw64/bin/cc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/vdavi/OneDrive/Documenti/Progetti/SegaMSemu/Prova3/CMakeFiles/CMakeTmp
Run Build Command(s):C:/PROGRA~2/EMBARC~1/Studio/21.0/bin/make.exe -f Makefile cmTC_fb74a/fast && MAKE Version 5.43 Copyright (c) 1987, 2019 Embarcadero Technologies, Inc.
Error Makefile 10: Colon expected
*** 1 errors during make ***
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
– Configuring incomplete, errors occurred!
See also “C:/Users/vdavi/OneDrive/Documenti/Progetti/SegaMSemu/Prova3/CMakeFiles/CMakeOutput.log”.
See also “C:/Users/vdavi/OneDrive/Documenti/Progetti/SegaMSemu/Prova3/CMakeFiles/CMakeError.log”.
SOMEBODY CAN HELP ME TO UNDERSTAND WHAT APPEND