diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-20 21:24:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-20 23:24:17 +0200 |
commit | 88e4563455ca183e1b77364b73d5e6173af513d3 (patch) | |
tree | b63fcee5e953c876886cf6c2bdeaf2738ee0c795 /cmake | |
parent | 06b68ac493f06723d123db5fa23b8c0a86ca7f66 (diff) |
api, compat: backport exports fix
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-version.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake index 64072e1c..9a496ebe 100644 --- a/cmake/opentrack-version.cmake +++ b/cmake/opentrack-version.cmake @@ -12,12 +12,13 @@ add_library(opentrack-version STATIC ${CMAKE_BINARY_DIR}/version.cc) opentrack_compat(opentrack-version) set(version-string " +#define BUILD_compat #include \"opentrack-compat/export.hpp\" #ifdef __cplusplus extern \"C\" #endif -OPENTRACK_EXPORT +OPENTRACK_COMPAT_EXPORT const char* opentrack_version; const char* opentrack_version = \"${OPENTRACK_COMMIT}\"; |