summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-03 16:28:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-03 16:28:16 (GMT)
commit077805ff49649537998ae446d73249dd9570e770 (patch)
treeebd38db707d2aa455455f281c3ece5412597dbbe /Source/cmAddCustomTargetCommand.cxx
parent5f8feedbace2f8410d70951b8f705cff86ff719e (diff)
downloadCMake-077805ff49649537998ae446d73249dd9570e770.zip
CMake-077805ff49649537998ae446d73249dd9570e770.tar.gz
CMake-077805ff49649537998ae446d73249dd9570e770.tar.bz2
ENH: fix ICE with gcc in dash8
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx19
1 files changed, 12 insertions, 7 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index af64838..241cdcc 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -20,6 +20,18 @@
bool cmAddCustomTargetCommand
::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
{
+ // This enum must be before an enum is used in a switch statment.
+ // If not there is an ICE on the itanium version of gcc we are running
+ // on dash8
+
+ // Keep track of parser state.
+ enum tdoing {
+ doing_command,
+ doing_depends,
+ doing_working_directory,
+ doing_comment,
+ doing_verbatim
+ };
if(args.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
@@ -69,13 +81,6 @@ bool cmAddCustomTargetCommand
const char* comment = 0;
// Keep track of parser state.
- enum tdoing {
- doing_command,
- doing_depends,
- doing_working_directory,
- doing_comment,
- doing_verbatim
- };
tdoing doing = doing_command;
// Look for the ALL option.