1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00
Files
opencv/platforms
Yang Chao 410b6fdd97 ios: set Xcode C++ language standard for Apple framework build
OpenCV requires C++17, and bundled 3rdparty libraries such as KleidiCV
explicitly request CXX_STANDARD 17. With the CMake Xcode generator,
however, neither the global CMAKE_CXX_STANDARD nor per-target
CXX_STANDARD is emitted as CLANG_CXX_LANGUAGE_STANDARD in the generated
project, so those sources are compiled at the toolchain default
(pre-C++17) and fail, e.g.:

  kleidicv/include/kleidicv/traits.h: error: no template named
  'is_base_of_v' in namespace 'std'; did you mean 'is_base_of'?

Set CLANG_CXX_LANGUAGE_STANDARD=gnu++17 at the project level via
CMAKE_XCODE_ATTRIBUTE_* in the shared getCMakeArgs(), so every target in
the generated Xcode project (including 3rdparty subprojects) builds with
C++17.
2026-06-07 15:19:10 +08:00
..
2025-06-11 15:55:42 +03:00
2026-05-20 17:57:51 +03:00
2026-02-14 15:37:33 +03:00
2026-06-05 16:56:55 +03:00
2023-07-13 09:28:36 +03:00
2025-05-30 17:57:13 +03:00
2023-07-14 15:06:53 +03:00
2021-12-30 21:43:45 +00:00

This folder contains toolchains and additional files that are needed for cross compilation.
For more information see introduction tutorials for target platform in documentation:
https://docs.opencv.org/5.x/df/d65/tutorial_table_of_content_introduction.html