javascript: Fix build for nodejs v5 which has smaller version string
authorBrendan Le Foll <brendan.le.foll@intel.com>
Wed, 11 Nov 2015 13:47:43 +0000 (13:47 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Wed, 11 Nov 2015 13:47:43 +0000 (13:47 +0000)
commit80024ff1844d539131b453dec3a94cb4cfe579c0
tree68ac0a61adda54abe65dde80bdf81abcea48d24b
parent049ba5fa9f2d18ac0ec6729c46916b34998d3c5f
javascript: Fix build for nodejs v5 which has smaller version string

SWIG uses SWIG_V8_VERSION made of
0x0${V8_VERSION_MAJOR}${V8_VERSION_MINOR}${V8_VERSION_PATCH}. Because newer v8
versions don't seem to have a patch version that is padded the version string
ends up too small ending with using the node.js 0.10.x paths. This fix pads the
version string to 8chars which (we assume) is always correct. Fixes #358

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/javascript/CMakeLists.txt