Skip to content

Commit 9437be1

Browse files
committed
Update
[ghstack-poisoned]
1 parent d0b11e8 commit 9437be1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

extension/parallel/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
# Please keep this file formatted by running:
8+
# ~~~
9+
# cmake-format -i CMakeLists.txt
10+
# ~~~
11+
12+
if(NOT (EXECUTORCH_BUILD_PTHREADPOOL AND EXECUTORCH_BUILD_CPUINFO))
13+
message(FATAL_ERROR "extension/parallel requires extension/threadpool")
14+
endif()
15+
16+
add_library(extension_parallel thread_parallel.cpp)
17+
18+
target_link_libraries(extension_parallel PUBLIC executorch_core extension_threadpool)
19+
target_compile_options(extension_parallel PUBLIC ${_common_compile_options})
20+
21+
install(
22+
TARGETS extension_parallel
23+
DESTINATION lib
24+
INCLUDES
25+
DESTINATION ${_common_include_directories})

0 commit comments

Comments
 (0)