Skip to content

Commit

Permalink
Version get fix: #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Artiom N. committed Nov 21, 2024
1 parent 11ad1cd commit 25ab2ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ endfunction()


function(determine_version_with_git)
message(STATUS "Determining version from Git...")
message(STATUS "Determining version from Git in \"${CMAKE_CURRENT_SOURCE_DIR}\"...")
execute_process(COMMAND git describe --tags
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
RESULT_VARIABLE GIT_EXECUTION_RESULT
OUTPUT_VARIABLE GIT_PKG_VERSION_FULL
ERROR_VARIABLE GIT_VERSION_ERROR
Expand All @@ -60,7 +60,7 @@ function(knp_get_version)
determine_version_with_git()

if (NOT KNP_VERSION)
read_version_file("${CMAKE_SOURCE_DIR}/VERSION")
read_version_file("${CMAKE_CURRENT_SOURCE_DIR}/VERSION")
endif()

message(STATUS "Kaspersky Neuromorphic Platform version: ${KNP_VERSION}.")
Expand Down

0 comments on commit 25ab2ca

Please sign in to comment.