From 88e4563455ca183e1b77364b73d5e6173af513d3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 20 Sep 2016 21:24:40 +0200 Subject: api, compat: backport exports fix --- cmake/opentrack-version.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake/opentrack-version.cmake') 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}\"; -- cgit v1.2.3