From 7f5c5e4ae7086448037423f61548bb7d9f48278c Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 4 Feb 2019 17:14:15 -0800 Subject: CMake: Fix config.nsh generation. Make sure we always define VERSION_MINOR. Change-Id: I4a79c6d25c1392834703d9ab3cbab2c0f9794ac5 Reviewed-on: https://code.wireshark.org/review/31886 Reviewed-by: Gerald Combs (cherry picked from commit 2c77f8899ce145a41ede5e848c67ba6cdef31b47) Reviewed-on: https://code.wireshark.org/review/31887 --- packaging/nsis/CMakeLists.txt | 1 - packaging/nsis/config.nsh.in | 50 +++++++++++++++++++++---------------------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/packaging/nsis/CMakeLists.txt b/packaging/nsis/CMakeLists.txt index 71b79a5c50..1a5a8aec9a 100644 --- a/packaging/nsis/CMakeLists.txt +++ b/packaging/nsis/CMakeLists.txt @@ -131,7 +131,6 @@ endif() # module, e.g. cmake/modules/configure_nsis_file.cmake. However we would # have to figure out a clean way to pass in the variables above. file(READ "${CMAKE_CURRENT_SOURCE_DIR}/config.nsh.in" _config_nsh_contents) -string(REPLACE "!define" "#cmakedefine" _config_nsh_contents "${_config_nsh_contents}") string(CONFIGURE "${_config_nsh_contents}" _config_nsh_contents) string(REPLACE "#define" "!define" _config_nsh_contents "${_config_nsh_contents}") string(REPLACE "#undef" "!undef" _config_nsh_contents "${_config_nsh_contents}") diff --git a/packaging/nsis/config.nsh.in b/packaging/nsis/config.nsh.in index 349b558e46..211c667982 100644 --- a/packaging/nsis/config.nsh.in +++ b/packaging/nsis/config.nsh.in @@ -5,29 +5,27 @@ # Do not prefix comments with ";". They will be removed by CMake. # MUST match "