When virtual target is compiled and it includes some targets that are not applicable for current platform, their compiler is still checked and an error is written into build log. For example a test project was configured to use msvc10 compiler on Windows only and gcc on Posix only.
Expected output in the build log:
Test Project - Win64" does not support the current platform. Skipping...
Real output:
Skipping...
Project/Target: "Test Project - Win64":
The compiler's setup is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?!
Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->unknown->Toolchain executables" and fix the compiler's setup.
Can you provide sample project/workspace which could be used to reproduce the problem?
Here it is
Possible patch:
- Do not check compiler validity if the target is skipped
- Remove unnecessary calls to
F()
,_T()
andwx_str()
- Split long lines
Fixed in revision 12542