Sha256: f6c4cf4eea346e01a2456d749b543d5be161f5f5706763c7c8ea641ada3afd19
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
# Converts a version such as 1.2.255 to 0x0102ff function(HexVersion version_hex_var major minor patch) math(EXPR version_dec "${major} * 256 * 256 + ${minor} * 256 + ${patch}") set(version_hex "0x") foreach(i RANGE 5 0 -1) math(EXPR num "(${version_dec} >> (4 * ${i})) & 15") string(SUBSTRING "0123456789abcdef" ${num} 1 num_hex) set(version_hex "${version_hex}${num_hex}") endforeach() set(${version_hex_var} "${version_hex}" PARENT_SCOPE) endfunction()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protocol-quic-0.0.0 | ext/ngtcp2/cmake/Version.cmake |