SHA256
1
0
forked from pool/opencv3
Files
opencv3/opencv-build-compare.patch
Dirk Stoecker 7e10e1ac2a Accepting request 713635 from home:StefanBruens:branches:KDE:Extra
This is part of the migration of openCV from KDE:Extra to science.

As openCV 4 has removed some of its deprecated API and requires a C++11 compiler (and thus may be imcompatible to some projects requiring C++03) openCV 3.4 is kept in parallel.

This is identical to the openCV 3.4.3 package from KDE:Extra, plus 3 minor maintenance updates.

- Update to 3.4.6
  Maintenance release, no changelog provided
- Update to 3.4.5
  Maintenance release, no changelog provided
- Update to 3.4.4
  OpenVINO™ toolkit components were updated to the R4 baseline
- Drop obsolete opencv-lib_suffix.patch

OBS-URL: https://build.opensuse.org/request/show/713635
OBS-URL: https://build.opensuse.org/package/show/science/opencv3?expand=0&rev=1
2019-07-08 12:49:11 +00:00

42 lines
1.8 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7c76ec..b9257c6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -960,11 +960,11 @@ endif()
if(OPENCV_TIMESTAMP)
status(" Timestamp:" ${OPENCV_TIMESTAMP})
endif()
-status(" Host:" ${CMAKE_HOST_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_VERSION} ${CMAKE_HOST_SYSTEM_PROCESSOR})
+status(" Host:" "Linux")
if(CMAKE_CROSSCOMPILING)
status(" Target:" ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION} ${CMAKE_SYSTEM_PROCESSOR})
endif()
-status(" CMake:" ${CMAKE_VERSION})
+status(" CMake:" "YES")
status(" CMake generator:" ${CMAKE_GENERATOR})
status(" CMake build tool:" ${CMAKE_BUILD_TOOL})
if(MSVC)
diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake
index fae91c1..89bfd0d 100644
--- a/cmake/OpenCVUtils.cmake
+++ b/cmake/OpenCVUtils.cmake
@@ -804,15 +804,18 @@ function(status text)
if(${status_cond})
string(REPLACE ";" " " status_then "${status_then}")
string(REGEX REPLACE "^[ \t]+" "" status_then "${status_then}")
+ string(REGEX REPLACE "\\(ver [^\\)]+\\)" "" status_then "${status_then}")
ocv_output_status("${status_text} ${status_then}")
else()
string(REPLACE ";" " " status_else "${status_else}")
string(REGEX REPLACE "^[ \t]+" "" status_else "${status_else}")
+ string(REGEX REPLACE "\\(ver [^\\)]+\\)" "" status_else "${status_else}")
ocv_output_status("${status_text} ${status_else}")
endif()
else()
string(REPLACE ";" " " status_cond "${status_cond}")
string(REGEX REPLACE "^[ \t]+" "" status_cond "${status_cond}")
+ string(REGEX REPLACE "\\(ver [^\\)]+\\)" "" status_cond "${status_cond}")
ocv_output_status("${status_text} ${status_cond}")
endif()
else()