Skip to content

Commit f815eae

Browse files
Disable IOS build for ai-ml-sdk-vgf-library dependency
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
1 parent 0c24a1a commit f815eae

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

third_party/CMakeLists.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,15 @@ if (VKB_PROFILING)
387387
endif()
388388

389389
# ai-ml-sdk-vgf-library
390-
set(FLATBUFFERS_PATH "${CMAKE_SOURCE_DIR}/third_party/flatbuffers")
391-
set(ML_SDK_VGF_LIB_BUILD_TOOLS OFF)
392-
add_subdirectory(ai-ml-sdk-vgf-library)
390+
if(NOT IOS)
391+
set(FLATBUFFERS_PATH "${CMAKE_SOURCE_DIR}/third_party/flatbuffers")
392+
set(ML_SDK_VGF_LIB_BUILD_TOOLS OFF)
393+
add_subdirectory(ai-ml-sdk-vgf-library)
393394

394-
# The DEBUG define set in global_options.cmake clashes with an enum value defined in ai-ml-sdk-vgf-library/include/vgf/logging.hpp,
395-
# work around this by disabling the DEBUG define for this target.
396-
target_compile_options(vgf PRIVATE -UDEBUG)
395+
# The DEBUG define set in global_options.cmake clashes with an enum value defined in ai-ml-sdk-vgf-library/include/vgf/logging.hpp,
396+
# work around this by disabling the DEBUG define for this target.
397+
target_compile_options(vgf PRIVATE -UDEBUG)
398+
399+
set_target_properties(vgf PROPERTIES FOLDER "ThirdParty" POSITION_INDEPENDENT_CODE ON)
400+
endif()
397401

398-
set_target_properties(vgf PROPERTIES FOLDER "ThirdParty" POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)