We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c31fa commit c1ba53aCopy full SHA for c1ba53a
examples/models/llava/CMakeLists.txt
@@ -15,7 +15,7 @@
15
# ~~~
16
# It should also be cmake-lint clean.
17
#
18
-cmake_minimum_required(VERSION 3.19)
+cmake_minimum_required(VERSION 3.24) # 3.24 is required for WHOLE_ARCHIVE
19
project(llava)
20
21
# Duplicating options as root CMakeLists.txt
@@ -124,7 +124,7 @@ target_link_options_shared_lib(quantized_ops_lib)
124
list(APPEND link_libraries quantized_kernels quantized_ops_lib)
125
126
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
127
- list(APPEND link_libraries custom_ops)
+ list(APPEND link_libraries $<LINK_LIBRARY:WHOLE_ARCHIVE,custom_ops>)
128
endif()
129
130
set(XNNPACK_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../backends/xnnpack)
0 commit comments