Skip to content

Commit

Permalink
[image] Fix module name (#4720)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed May 10, 2024
1 parent a852856 commit 747c705
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions applications/plugins/image/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,10 @@
# define SOFA_IMAGE_API SOFA_IMPORT_DYNAMIC_LIBRARY
#endif

namespace image
{
constexpr const char* MODULE_NAME = "@PROJECT_NAME@";
constexpr const char* MODULE_VERSION = "@PROJECT_VERSION@";
} // namespace image

#endif
4 changes: 2 additions & 2 deletions applications/plugins/image/initImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ void initExternalModule()

const char* getModuleName()
{
return "Image Plugin";
return image::MODULE_NAME;
}

const char* getModuleVersion()
{
return "0.1";
return image::MODULE_VERSION;
}

const char* getModuleLicense()
Expand Down

0 comments on commit 747c705

Please sign in to comment.