In one of my CMakeLists.txt, I have the following instructions:
IF ( MSVC ) SET ( CMAKE_CXX_FLAGS_DEBUG "/MDd" ) )
After creating the MSVC 10.0 solution, optimization (/ O2) was unexpectedly turned on in the code above. I am sure I did not include it in another place.
Why is this?
source share