From 32fb726dbfd805a06f86ada1881181a59f97878f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=88=98?= <40414978+PatriceJiang@users.noreply.github.com> Date: Wed, 22 Sep 2021 10:17:37 +0800 Subject: [PATCH] fix cmake error (#3902) --- native/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index d8b8e90ac4..b4b5b8281d 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -91,7 +91,7 @@ endif() if(USE_JOB_SYSTEM_TASKFLOW) set(CMAKE_CXX_STANDARD 17) - if("${TARGET_IOS_VERSION}" VERSION_LESS "12.0") + if(IOS AND "${TARGET_IOS_VERSION}" VERSION_LESS "12.0") message(FATAL_ERROR "Target iOS version requires 12.0+ when enable taskflow") endif() endif()