Skip to content

Commit

Permalink
Merge pull request #60 from ros/ros2_debug_library_suffix
Browse files Browse the repository at this point in the history
[ros2] library suffix hack
  • Loading branch information
mikaelarguedas authored Nov 4, 2017
2 parents adcb526 + 6879603 commit 16b37e9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/class_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ std::string systemLibraryPrefix()

std::string systemLibrarySuffix()
{
#if !defined(WIN32)
return Poco::SharedLibrary::suffix();
#else
// Return just .dll , as Poco::SharedLibrary::suffix() will return d.dll in debug mode.
// This isn't common for our usecase (instead debug libraries are placed in a `Debug` folder).
// Poco should be compiled with `#define POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX`
// to automatically remove the trailing `d` from the shared library suffix
// return Poco::SharedLibrary::suffix();
#ifdef __linux__
return ".so";
#elif __APPLE__
return ".dylib";
#elif _WIN32
return ".dll";
#else
return Poco::SharedLibrary::suffix();
#endif
}

Expand Down

0 comments on commit 16b37e9

Please sign in to comment.