diff options
author | Benoît Ganne <bganne@cisco.com> | 2022-08-31 11:45:17 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2022-09-01 12:53:15 +0000 |
commit | 934f9b095f2541888eff9c717f2d3e7f793456e0 (patch) | |
tree | ed1c8193cbb08ee250d58feb95b74e42c7fbcc36 /src/cmake/pack.cmake | |
parent | 1363331f0f705b14decadee037ad9460bd980d83 (diff) |
build: set OS_ID_LIKE only if unset
cmake MATCHES directive with the empty regex "" always match, including
non-empty strings.
Type: fix
Fixes: 534dfc1f18db74f4a2c78d62fe6893daba56dc86
Change-Id: If085b29da15a6d7fc680cebb823183fd3c7eea68
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/cmake/pack.cmake')
-rw-r--r-- | src/cmake/pack.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmake/pack.cmake b/src/cmake/pack.cmake index f4edecb956a..88b62548211 100644 --- a/src/cmake/pack.cmake +++ b/src/cmake/pack.cmake @@ -65,7 +65,7 @@ macro(add_vpp_packaging) set(CPACK_${type}_PACKAGE_RELEASE 1) # Pure Debian does not set the "OS_ID_LIKE", it only sets "OS_ID" - if (OS_ID_LIKE MATCHES "") + if (NOT DEFINED OS_ID_LIKE) set(OS_ID_LIKE "${OS_ID}") endif() |