System bitness check in vera++-config and cross-compilation
Issue #59
resolved
vera++-config-version.cmake file checks system bitness:
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT "${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
math(EXPR installedBits "8 * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
But this check will not work for cross-compilation case, where CMAKE_SIZEOF_VOID_P refers to target system and might be different with host system, on which vera++ is installed.
Comments (4)
-
-
don't check for sizeof void in vera config file - see
#59→ <<cset dff18acef306>>
-
could you check with the
master
branch, and close this ticket if that's ok? -
reporter - changed status to resolved
The issue was resolved in latest
master
branch. Thank you! - Log in to comment
And this doesn't make much sense for vera++, as nothing is linked against it