mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
cmake: report build arch
This commit is contained in:
parent
a0354010b2
commit
5e053f3c72
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user