mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Information about cmake and build platform is added to the status report
This commit is contained in:
parent
0630e7010e
commit
a8f27e4a84
@ -661,8 +661,26 @@ include(cmake/OpenCVGenConfig.cmake REQUIRED)
|
|||||||
# Summary:
|
# Summary:
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
status("")
|
status("")
|
||||||
status("General configuration for opencv ${OPENCV_VERSION} =====================================")
|
status("General configuration for OpenCV ${OPENCV_VERSION} =====================================")
|
||||||
|
|
||||||
|
#build platform
|
||||||
status("")
|
status("")
|
||||||
|
status(" Platform:")
|
||||||
|
status(" Host:" ${CMAKE_HOST_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_VERSION} ${CMAKE_HOST_SYSTEM_PROCESSOR})
|
||||||
|
status(" Target:" ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION} ${CMAKE_SYSTEM_PROCESSOR})
|
||||||
|
status(" CMake:" ${CMAKE_VERSION})
|
||||||
|
status(" CMake generator:" ${CMAKE_GENERATOR})
|
||||||
|
status(" CMake build tool:" ${CMAKE_BUILD_TOOL})
|
||||||
|
if(MSVC)
|
||||||
|
status(" MSVC:" ${MSVC_VERSION})
|
||||||
|
endif()
|
||||||
|
if(CMAKE_GENERATOR MATCHES Xcode)
|
||||||
|
status(" Xcode:" ${XCODE_VERSION})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# C/C++ options
|
||||||
|
status("")
|
||||||
|
status(" C++:")
|
||||||
status(" Built as dynamic libs?:" BUILD_SHARED_LIBS THEN YES ELSE NO)
|
status(" Built as dynamic libs?:" BUILD_SHARED_LIBS THEN YES ELSE NO)
|
||||||
status(" C++ Compiler:" CMAKE_COMPILER THEN "${CMAKE_COMPILER}" ELSE "${CMAKE_CXX_COMPILER}")
|
status(" C++ Compiler:" CMAKE_COMPILER THEN "${CMAKE_COMPILER}" ELSE "${CMAKE_CXX_COMPILER}")
|
||||||
status(" C++ flags (Release):" ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE})
|
status(" C++ flags (Release):" ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE})
|
||||||
@ -675,6 +693,7 @@ else()
|
|||||||
status(" Linker flags (Debug):" ${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS_DEBUG})
|
status(" Linker flags (Debug):" ${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS_DEBUG})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# OpenCV modules
|
||||||
status("")
|
status("")
|
||||||
status(" OpenCV modules:")
|
status(" OpenCV modules:")
|
||||||
string(REPLACE "opencv_" "" OPENCV_MODULES_BUILD_ST "${OPENCV_MODULES_BUILD}")
|
string(REPLACE "opencv_" "" OPENCV_MODULES_BUILD_ST "${OPENCV_MODULES_BUILD}")
|
||||||
@ -686,7 +705,7 @@ status(" Disabled by user:" OPENCV_MODULES_DISABLED_USER THEN ${OPENCV
|
|||||||
status(" Disabled by dependency:" OPENCV_MODULES_DISABLED_AUTO THEN ${OPENCV_MODULES_DISABLED_AUTO_ST} ELSE "-")
|
status(" Disabled by dependency:" OPENCV_MODULES_DISABLED_AUTO THEN ${OPENCV_MODULES_DISABLED_AUTO_ST} ELSE "-")
|
||||||
status(" Unavailable:" OPENCV_MODULES_DISABLED_FORCE THEN ${OPENCV_MODULES_DISABLED_FORCE_ST} ELSE "-")
|
status(" Unavailable:" OPENCV_MODULES_DISABLED_FORCE THEN ${OPENCV_MODULES_DISABLED_FORCE_ST} ELSE "-")
|
||||||
|
|
||||||
|
# Android extra
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
status("")
|
status("")
|
||||||
status(" Android: ")
|
status(" Android: ")
|
||||||
|
@ -840,6 +840,9 @@ set( CMAKE_C_FLAGS "${ANDROID_CXX_FLAGS} ${CMAKE_C_FLAGS}" )
|
|||||||
include( CMakeForceCompiler )
|
include( CMakeForceCompiler )
|
||||||
CMAKE_FORCE_C_COMPILER( "${CMAKE_C_COMPILER}" GNU )
|
CMAKE_FORCE_C_COMPILER( "${CMAKE_C_COMPILER}" GNU )
|
||||||
CMAKE_FORCE_CXX_COMPILER( "${CMAKE_CXX_COMPILER}" GNU )
|
CMAKE_FORCE_CXX_COMPILER( "${CMAKE_CXX_COMPILER}" GNU )
|
||||||
|
set( CMAKE_SIZEOF_VOID_P 4 )
|
||||||
|
set( CMAKE_C_SIZEOF_DATA_PTR 4 )
|
||||||
|
set( CMAKE_CXX_SIZEOF_DATA_PTR 4 )
|
||||||
|
|
||||||
#set these global flags for cmake client scripts to change behavior
|
#set these global flags for cmake client scripts to change behavior
|
||||||
set( ANDROID True )
|
set( ANDROID True )
|
||||||
|
Loading…
Reference in New Issue
Block a user