Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-Authored-By: Nikita Titov <[email protected]>
  • Loading branch information
jameslamb and StrikerRUS committed Mar 25, 2020
1 parent 006e0c4 commit 2d49632
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,11 @@ file(GLOB SOURCES

add_executable(lightgbm src/main.cpp ${SOURCES})

add_library(_lightgbm SHARED src/c_api.cpp ${SOURCES})
# Only build the R part of the library if building for
# use with the R package
if(BUILD_FOR_R)
add_library(_lightgbm SHARED src/c_api.cpp src/lightgbm_R.cpp ${SOURCES})
else()
add_library(_lightgbm SHARED src/c_api.cpp ${SOURCES})
add_library(_lightgbm SHARED src/lightgbm_R.cpp)
endif(BUILD_FOR_R)

if(MSVC)
Expand Down

0 comments on commit 2d49632

Please sign in to comment.