> From: Nicolas Despres <[email protected]> > > Make it a static method instead of an array. It is safer for the > type checking and if we add a new target type we will be warned to add > a case to the switch.
> + case cmTarget::UNKNOWN_LIBRARY: > + return "UNKNOWN_LIBRARY"; > + // break; /* unreachable */ > + } > + return 0; > +} Shouldn't this spit out a warning or error message? Eike -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
