Skip to content

Commit 308f85b

Browse files
zmap 4.3.3: fix version
ZMap uses CMake to set the version printed with zmap --version. This fix replaces the DEVELOPMENT version with current version, so --version is accurate.
1 parent 2b7875a commit 308f85b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Formula/z/zmap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Zmap < Formula
3636

3737
def install
3838
inreplace ["conf/zmap.conf", "src/constants.h", "src/zopt.ggo.in"], "/etc", etc
39+
inreplace "CMakeLists.txt", "set(ZMAP_VERSION DEVELOPMENT)", "set(ZMAP_VERSION #{version})"
3940
args = %w[-DENABLE_DEVELOPMENT=OFF -DRESPECT_INSTALL_PREFIX_CONFIG=ON]
4041

4142
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args

0 commit comments

Comments
 (0)