cmake: report build arch

This commit is contained in:
zdenop 2022-04-15 14:06:20 +02:00
parent a0354010b2
commit 5e053f3c72

View File

@ -76,7 +76,7 @@ set(MINIMUM_LEPTONICA_VERSION 1.74)
#
# ##############################################################################
message("Configuring tesseract version ${PACKAGE_VERSION}...")
message(STATUS "Configuring tesseract version ${PACKAGE_VERSION}...")
if(WIN32)
option(SW_BUILD "Build with sw" ON)
@ -153,7 +153,7 @@ if(COMPILER_SUPPORTS_MARCH_NATIVE)
set(MARCH_NATIVE_OPT ON)
endif()
message("CMAKE_SYSTEM_PROCESSOR=<${CMAKE_SYSTEM_PROCESSOR}>")
message(STATUS "CMAKE_SYSTEM_PROCESSOR=<${CMAKE_SYSTEM_PROCESSOR}>")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|x86_64|AMD64|amd64|i386|i686")
@ -479,10 +479,17 @@ elseif(${CMAKE_BUILD_TYPE} MATCHES Release)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
endif() # LTO_SUPPORTED
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(BUILD_ARCH "64 bits")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(BUILD_ARCH "32 bits")
endif()
message(STATUS)
message(STATUS "General configuration for Tesseract ${PACKAGE_VERSION}")
message(STATUS "--------------------------------------------------------")
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "Build type: ${CMAKE_BUILD_TYPE} ${BUILD_ARCH}")
message(STATUS "Compiler: ${CMAKE_CXX_COMPILER_ID}")
message(STATUS "Used standard: C++${CMAKE_CXX_STANDARD}")
message(STATUS "CXX compiler options: ${COMPILER_FLAGS}")