This is an automated email from the ASF dual-hosted git repository.

martinzink pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit 3b9711e69dd0d41ebf2443987f681f0f03398004
Author: Ferenc Gerlits <[email protected]>
AuthorDate: Wed Feb 18 12:49:43 2026 +0100

    MINIFICPP-2720 Overwrite agent_version.cpp instead of appending
    
    If you run cmake multiple times, you get an agent_version.cpp file 
containing multiple copies of these constants, leading to multiple definition 
errors.
    
    This is a PR containing a (minus) one character change. :)
    
    Closes #2108
    
    Signed-off-by: Martin Zink <[email protected]>
---
 generateVersion.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generateVersion.bat b/generateVersion.bat
index cf9bfb76e..e5ed1753d 100644
--- a/generateVersion.bat
+++ b/generateVersion.bat
@@ -52,7 +52,7 @@ set /a count=0
 
        echo }  // namespace org::apache::nifi::minifi
 
-) >> "%out_dir%/agent_version.cpp"
+) > "%out_dir%/agent_version.cpp"
 
  goto :EOF
 

Reply via email to