From 15bcb79712c1c2b3607fa4ab82e5bc24ebabfed0 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 9 Jul 2019 14:10:05 +0200 Subject: [PATCH] idf_exe: bump version to 1.0.1 --- tools/windows/idf_exe/CMakeLists.txt | 3 ++- tools/windows/idf_exe/idf_main.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/windows/idf_exe/CMakeLists.txt b/tools/windows/idf_exe/CMakeLists.txt index ba7e940af..7693412e9 100644 --- a/tools/windows/idf_exe/CMakeLists.txt +++ b/tools/windows/idf_exe/CMakeLists.txt @@ -1,10 +1,11 @@ cmake_minimum_required(VERSION 3.5) project(idfexe) -set(VERSION 1.0) +set(VERSION 1.0.1) set(ARCHIVE_NAME idf-exe-v${VERSION}.zip) add_executable(idf idf_main.c) +target_compile_definitions(idf PRIVATE -DVERSION=\"${VERSION}\") set_target_properties(idf PROPERTIES C_STANDARD 99) target_link_libraries(idf "-lshlwapi") diff --git a/tools/windows/idf_exe/idf_main.c b/tools/windows/idf_exe/idf_main.c index f17fc7f41..3a8e6dcfb 100644 --- a/tools/windows/idf_exe/idf_main.c +++ b/tools/windows/idf_exe/idf_main.c @@ -18,7 +18,6 @@ #include #define LINESIZE 1024 -#define VERSION "1.0" static void fail(LPCSTR message, ...) __attribute__((noreturn));