Skip to content

Commit 2ecacde

Browse files
committed
[src] Fix plugin name config for plugin registration
1 parent b2bb09a commit 2ecacde

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Tearing/config.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
#pragma once
2525

2626
#include <sofa/config.h>
27+
#define PLUGIN_VERSION @PROJECT_VERSION@
2728

2829
#ifdef SOFA_BUILD_TEARING
30+
# define SOFA_TARGET @PROJECT_NAME@
2931
# define TEARING_API SOFA_EXPORT_DYNAMIC_LIBRARY
3032
#else
3133
# define TEARING_API SOFA_IMPORT_DYNAMIC_LIBRARY

src/Tearing/initTearing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const char* getModuleName()
6161

6262
const char* getModuleVersion()
6363
{
64-
return sofa_tostring(TEARING_VERSION);
64+
return sofa_tostring(PLUGIN_VERSION);
6565
}
6666

6767
const char* getModuleLicense()

0 commit comments

Comments
 (0)