diff --git a/tools/windows/idf_exe/CMakeLists.txt b/tools/windows/idf_exe/CMakeLists.txt index ba7e940af7..7693412e91 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 f17fc7f41b..3a8e6dcfbb 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));