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 5516533 commit 2e3543cCopy full SHA for 2e3543c
CMakeLists.txt
@@ -428,7 +428,10 @@ file(
428
src/network/*.cpp
429
src/treelearner/*.cpp
430
src/utils/*.cpp
431
-if(USE_CUDA)
+)
432
+file(
433
+ GLOB
434
+ LGBM_CUDA_SOURCES
435
src/treelearner/*.cu
436
src/boosting/cuda/*.cpp
437
src/boosting/cuda/*.cu
@@ -442,9 +445,12 @@ if(USE_CUDA)
442
445
src/io/cuda/*.cpp
443
446
src/cuda/*.cpp
444
447
src/cuda/*.cu
-endif()
448
)
449
450
+if(USE_CUDA)
451
+ list(APPEND SOURCES ${LGBM_CUDA_SOURCES})
452
+endif()
453
+
454
add_library(lightgbm_objs OBJECT ${SOURCES})
455
456
if(BUILD_CLI)
0 commit comments