build: set OS_ID_LIKE only if unset 50/37050/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 31 Aug 2022 09:45:17 +0000 (11:45 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 1 Sep 2022 12:53:15 +0000 (12:53 +0000)
commit934f9b095f2541888eff9c717f2d3e7f793456e0
treeed1c8193cbb08ee250d58feb95b74e42c7fbcc36
parent1363331f0f705b14decadee037ad9460bd980d83
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>
src/cmake/pack.cmake