File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ target_include_directories(extension_module PUBLIC ${EXECUTORCH_ROOT}/..)
29
29
target_compile_options (extension_module PUBLIC -Wno-deprecated-declarations
30
30
-fPIC )
31
31
32
+ # Module extension built as a static library.
33
+ # TODO(gjcomer) Remove this target after cleaning up CMake targets.
34
+ add_library (extension_module_static STATIC ${_extension_module__srcs} )
35
+ target_link_libraries (extension_module_static PRIVATE executorch extension_data_loader )
36
+ target_include_directories (extension_module_static PUBLIC ${EXECUTORCH_ROOT} /.. )
37
+ target_compile_options (extension_module_static PUBLIC -Wno-deprecated-declarations
38
+ -fPIC )
39
+
32
40
# Install libraries
33
41
install (
34
42
TARGETS extension_module
You can’t perform that action at this time.
0 commit comments