File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,11 @@ if (( ${NUMARGS} == 0 )) || hasArg libraft || hasArg docs || hasArg tests || has
329
329
fi
330
330
331
331
# Build and (optionally) install the raft-dask Python package
332
- if (( ${NUMARGS} == 0 )) || hasArg raft-dask || hasArg docs; then
332
+ if (( ${NUMARGS} == 0 )) || hasArg raft-dask; then
333
+ # Append `-DFIND_RAFT_CPP=ON` to EXTRA_CMAKE_ARGS unless a user specified the option.
334
+ if [[ " ${EXTRA_CMAKE_ARGS} " != * " DFIND_RAFT_CPP" * ]]; then
335
+ EXTRA_CMAKE_ARGS=" ${EXTRA_CMAKE_ARGS} -DFIND_RAFT_CPP=ON"
336
+ fi
333
337
334
338
cd ${REPODIR} /python/raft-dask
335
339
python setup.py build_ext --inplace -- -DCMAKE_PREFIX_PATH=" ${LIBRAFT_BUILD_DIR} ;${INSTALL_PREFIX} " -DCMAKE_LIBRARY_PATH=${LIBRAFT_BUILD_DIR} ${EXTRA_CMAKE_ARGS} -- -j${PARALLEL_LEVEL:- 1}
340
344
341
345
# Build and (optionally) install the pylibraft Python package
342
346
if (( ${NUMARGS} == 0 )) || hasArg pylibraft; then
347
+ # Append `-DFIND_RAFT_CPP=ON` to EXTRA_CMAKE_ARGS unless a user specified the option.
348
+ if [[ " ${EXTRA_CMAKE_ARGS} " != * " DFIND_RAFT_CPP" * ]]; then
349
+ EXTRA_CMAKE_ARGS=" ${EXTRA_CMAKE_ARGS} -DFIND_RAFT_CPP=ON"
350
+ fi
343
351
344
352
cd ${REPODIR} /python/pylibraft
345
353
python setup.py build_ext --inplace -- -DCMAKE_PREFIX_PATH=" ${LIBRAFT_BUILD_DIR} ;${INSTALL_PREFIX} " -DCMAKE_LIBRARY_PATH=${LIBRAFT_BUILD_DIR} ${EXTRA_CMAKE_ARGS} -- -j${PARALLEL_LEVEL:- 1}
You can’t perform that action at this time.
0 commit comments