Skip to content

Commit

Permalink
[infra/onert] Use optional include for platform dependent setting (#1…
Browse files Browse the repository at this point in the history
…4452)

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 <[email protected]>
  • Loading branch information
hseok-oh authored Dec 13, 2024
1 parent 7c2fe59 commit 7be514e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infra/nnfw/cmake/ApplyCompileFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion infra/nnfw/cmake/CfgOptionFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7be514e

Please sign in to comment.