System bitness check in vera++-config and cross-compilation

Issue #59 resolved
Vladislav Vinogradov created an issue

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)

  1. Log in to comment