From 7be514e937ec8d7fc814db66cf50c635136cfd8e Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Fri, 13 Dec 2024 16:50:27 +0900 Subject: [PATCH] [infra/onert] Use optional include for platform dependent setting (#14452) This commit uses optional include for platform dependent cmake flag and option setting. It prevents build error on new platform and try to build with default setting. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh --- infra/nnfw/cmake/ApplyCompileFlags.cmake | 2 +- infra/nnfw/cmake/CfgOptionFlags.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/nnfw/cmake/ApplyCompileFlags.cmake b/infra/nnfw/cmake/ApplyCompileFlags.cmake index b1c7ff568bd..6c31ad2d1c2 100644 --- a/infra/nnfw/cmake/ApplyCompileFlags.cmake +++ b/infra/nnfw/cmake/ApplyCompileFlags.cmake @@ -10,7 +10,7 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") # # Platform specific compile flag setting # -include("${CMAKE_CURRENT_LIST_DIR}/buildtool/config/config_${TARGET_PLATFORM}.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/buildtool/config/config_${TARGET_PLATFORM}.cmake" OPTIONAL) # # Apply compile flags diff --git a/infra/nnfw/cmake/CfgOptionFlags.cmake b/infra/nnfw/cmake/CfgOptionFlags.cmake index df94610c68a..fea23a805e8 100644 --- a/infra/nnfw/cmake/CfgOptionFlags.cmake +++ b/infra/nnfw/cmake/CfgOptionFlags.cmake @@ -5,7 +5,7 @@ include(CMakeDependentOption) # note: this should be placed before default setting for option setting priority # (platform specific setting have higher priority) # -include("cmake/options/options_${TARGET_PLATFORM}.cmake") +include("cmake/options/options_${TARGET_PLATFORM}.cmake" OPTIONAL) # # Default build configuration for project