9 | | |
10 | | Alternatively, create a manual version of the file that ends with |
11 | | |
12 | | {{{ |
13 | | # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: |
14 | | if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "") |
15 | | return() |
16 | | endif() |
17 | | |
18 | | # check that the installed version has the same 32/64bit-ness as the one which is currently searching: |
19 | | if(CMAKE_SIZEOF_VOID_P STREQUAL "4" OR CMAKE_SIZEOF_VOID_P STREQUAL "8") |
20 | | math(EXPR installedBits "${CMAKE_SIZEOF_VOID_P} * 8") |
21 | | set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") |
22 | | set(PACKAGE_VERSION_UNSUITABLE TRUE) |
23 | | endif() |
24 | | }}} |