From acfb113239643908ceafe4d3617f938828b18a6d Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Thu, 9 Jun 2022 09:08:17 +0200 Subject: [PATCH] cmake: use local scope version --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 463479496..588fe6b60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,7 +173,7 @@ endif() add_definitions( -DARCH="${CMAKE_SYSTEM_PROCESSOR}" -DOS="${CMAKE_SYSTEM_NAME}" - -DVERSION="${CMAKE_PROJECT_VERSION}" + -DVERSION="${PROJECT_VERSION}" -DVER_MAJOR=${PROJECT_VERSION_MAJOR} -DVER_MINOR=${PROJECT_VERSION_MINOR} -DVER_PATCH=${PROJECT_VERSION_PATCH}