Synxis
Synxis

Reputation: 9388

Cmake generates incorrect configurations

I use CMake, and on one of my machines, the generation seems to be messy. When I open the project properties in Visual Studio 2010, the debug configuration seems to be a release one: _DEBUG is not defined, optimizations are enabled, the linked runtime is the release one (/MT and not /MTd), etc...

The problem is that it prevent correct build of project depending on dlls compiled using CMake... for example if some parts of the dll are only present in a debug build. I am using CMake 2.8.10.2.

Upvotes: 2

Views: 158

Answers (1)

ixSci
ixSci

Reputation: 13708

Try to remove generated files and run cmake again. It happens sometimes when MSVS is running and you regenerate your project with CMake. Some settings are still keep in MSVS but others are regenerated so you have a mess at the end.

Upvotes: 2

Related Questions