Source: httraqt Version: 1.4.9-1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
httraqt fails to cross build from source, because it uses TRY_RUN. In this case, check_type_size can be used. It's much easier to use and supports cross compilation. Please consider applying the attached patch. Helmut
--- httraqt-1.4.9.orig/cmake/HTTRAQTWordSize.cmake +++ httraqt-1.4.9/cmake/HTTRAQTWordSize.cmake @@ -1,11 +1,10 @@ +include(CheckTypeSize) + # Detect the word-size for the current platform ... MESSAGE(STATUS "checking the width of int* for this platform") -TRY_RUN( - HTTRAQT_PLATFORM_SIZE_TYPE - HTTRAQT_PLATFORM_SIZE_TYPE_COMPILE - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/configuration/size_type.cpp) +check_type_size("int *" HTTRAQT_INT_PTR BUILTIN_TYPES_ONLY) +MATH(EXPR HTTRAQT_PLATFORM_SIZE_TYPE "8*${HTTRAQT_INT_PTR}") MESSAGE(STATUS " int* is ${HTTRAQT_PLATFORM_SIZE_TYPE} bits") --- httraqt-1.4.9.orig/configuration/size_type.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// #include <vector> - -int main(int argc, char* argv[]) -{ - return sizeof(int*) * 8; -} -