Changeset 629 for CMT/HEAD/source/cmt_constituent.cxx
- Timestamp:
- Jan 28, 2013, 2:41:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_constituent.cxx
r627 r629 16 16 #include "cmt_database.h" 17 17 #include "cmt_log.h" 18 #include "cmt_error.h" 18 19 19 20 /*----------------------------------------------------------*/ … … 174 175 m_constituent.need_prototypes = false; 175 176 } 177 else if (w == "-modules") 178 { 179 if (m_constituent.type == Application || 180 m_constituent.type == Library) 181 { 182 m_constituent.has_modules = true; 183 } 184 } 185 else if (w == "-no_modules") 186 { 187 if (m_constituent.type == Application || 188 m_constituent.type == Library) 189 { 190 m_constituent.has_modules = false; 191 } 192 } 176 193 else if (w == "-check") 177 194 { … … 253 270 else if (w.substr (0, 1) == "-") 254 271 { 255 //if (!Cmt::get_quiet ()) 256 //{ 257 CmtMessage::warning ("bad option " + w + " in constituent " + 258 m_constituent.name); 259 // cerr << "#CMT> Warning: bad option " 260 // << w << " in constituent " << m_constituent.name << endl; 261 //CmtError::set (CmtError::execution_error, cmd); 262 //} 272 if (CmtMessage::active (Verbose)) 273 CmtMessage::warning 274 (CmtError::get_error_name (CmtError::syntax_error) 275 + ": bad option " + w + " in constituent " + m_constituent.name); 263 276 } 264 277 else if ((equal = w.find ("=")) != cmt_string::npos) … … 522 535 no_share = false; 523 536 need_prototypes = false; 537 has_modules = false; 524 538 need_check = false; 525 539 build_triggers = false; … … 672 686 } 673 687 688 if (type == Application || type == Library) 689 { 690 if (has_modules) 691 out << " -modules"; 692 else 693 out << " -no_modules"; 694 } 695 674 696 if (has_target_tag) 675 697 {
Note: See TracChangeset
for help on using the changeset viewer.