diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 333bcce81..da579dbd2 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1864,7 +1864,7 @@ void cmLocalVisualStudio7GeneratorOptions::HandleFlag(const char* flag) } // If the entry was found the flag has been handled. - flag_handled |= entry_found; + flag_handled = flag_handled || entry_found; } // If any map entry handled the flag we are done.