diff options
-rw-r--r-- | cmake/opentrack-version.cmake | 4 | ||||
-rw-r--r-- | gui/main-window.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake index 181fc613..05390659 100644 --- a/cmake/opentrack-version.cmake +++ b/cmake/opentrack-version.cmake @@ -24,9 +24,9 @@ extern \"C\" extern #endif -const char* opentrack_version; +const char* const opentrack_version; -const char* opentrack_version = \"${OPENTRACK_COMMIT}${_build_type}\"; +const char* const opentrack_version = \"${OPENTRACK_COMMIT}${_build_type}\"; ") set(file "${CMAKE_CURRENT_BINARY_DIR}/version.cpp") diff --git a/gui/main-window.cpp b/gui/main-window.cpp index 637cbef5..2aa60a2f 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -29,7 +29,7 @@ # include <windows.h> #endif -extern "C" const char* opentrack_version; +extern "C" const char* const opentrack_version; #if !defined _WIN32 && !defined __APPLE__ # include <unistd.h> |