0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-09 21:35:36 +00:00
Files
termux-packages/packages/libncnn/python_CMakeLists.txt.patch
Jia Yuan Lo c40a52499a fix(main/libcnn): add patches
Fix build issues around C++14 and unknown type name FILE
2023-07-09 23:16:23 +08:00

12 lines
346 B
Diff

--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -5,7 +5,7 @@ project(pyncnn)
set(PACKAGE_VERSION ${NCNN_VERSION_STRING})
add_definitions(-DVERSION_INFO="${PACKAGE_VERSION}")
-set( CMAKE_CXX_STANDARD 11 )
+set( CMAKE_CXX_STANDARD 14 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "ARM64")