From bdcbc37a2d26637075845464e501e2024376abd0 Mon Sep 17 00:00:00 2001 From: tpoisonooo Date: Fri, 25 Nov 2022 18:27:08 +0800 Subject: [PATCH] fix(pybind11): build error (#4368) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c37202d6223..8d0b4c63a1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ else() option(NCNN_BUILD_EXAMPLES "build examples" ON) endif() -if(ANDROID OR IOS OR LINUX OR NCNN_SIMPLESTL) +if(ANDROID OR IOS OR NCNN_SIMPLESTL) option(NCNN_DISABLE_EXCEPTION "disable exception" ON) else() option(NCNN_DISABLE_EXCEPTION "disable exception" OFF)