C1083: Cannot open compiler generated file.
-
Hello everyone,
I have a C++ project that I want to compile. When I use command prompt and build it using Cmake together with Ninja as generator and builder, it works, however, when I use QT with Ninja as generator and VS 19 x64 it gives me the following error:
C1083: Cannot open compiler generated file: ":Invalid argument
Anyone knows what is going wrong?
Thanks.
-
@Reza-Besharat said in C1083: Cannot open compiler generated file.:
when I use QT
Do you mean QtCreator?
Please post whole build log. -
Thanks for your answer, Yes I meant QT creator.
I managed to solve the issue. The Cmakelist file for compiling the project in QTcreator is different from the one used for compiling it via CMD. -
Hi,
Why are there two different CMakeLists.txt files to build your project ?