Skip to content

Commit 29d3999

Browse files
committed
Update
[ghstack-poisoned]
1 parent bc8f971 commit 29d3999

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,12 @@ if(EXECUTORCH_BUILD_PTHREADPOOL)
230230
)
231231
endif()
232232
include(ExternalProject)
233+
include(GNUInstallDirs)
233234
set(PTHREADPOOL_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/pthreadpool")
234235
set(PTHREADPOOL_INSTALL_DIR "${PTHREADPOOL_BINARY_DIR}/install")
235-
set(PTHREADPOOL_LIBRARY "${PTHREADPOOL_INSTALL_DIR}/lib/libpthreadpool.a")
236+
set(PTHREADPOOL_LIBRARY
237+
"${PTHREADPOOL_INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/libpthreadpool.a"
238+
)
236239
get_extra_cmake_args_for_external_project(PTHREADPOOL_EXTRA_CMAKE_ARGS)
237240
ExternalProject_Add(
238241
pthreadpoolExternalProject

0 commit comments

Comments
 (0)