diff --git a/CMakeLists.txt b/CMakeLists.txt index 79ec75ad..9153ded8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/firmware/toolchain-arm-cortex project(portapack-h1) set(VERSION "$ENV{VERSION_STRING}") -if ("$ENV{EnvironmentVariableName}" STREQUAL "") +if ("$ENV{VERSION_STRING}" STREQUAL "") execute_process( COMMAND git log -n 1 --format=%h WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}