set(APP_LIBS SimGearCore)
else()
set(APP_LIBS
- ${LibArchive_LIBRARIES}
SimGearCore
+ ${LibArchive_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${WINSOCK_LIBRARY}
${ZLIB_LIBRARY}
#include <simgear/package/Catalog.hxx>
#include <boost/foreach.hpp>
+#include <algorithm>
#include <fstream>
#include <cstring>
size_t lastDot = aName.rfind('.');
Package* pkg = NULL;
- if (lastDot == -1) {
+ if (lastDot == std::string::npos) {
// naked package ID
CatalogDict::const_iterator it = m_catalogs.begin();
for (; it != m_catalogs.end(); ++it) {