Skip to content

Commit

Permalink
fixed list of SOURCES
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Mar 25, 2020
1 parent 6edf614 commit f1d7604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ file(GLOB SOURCES
)

add_executable(lightgbm src/main.cpp ${SOURCES})
set(SOURCES "${SOURCES} src/c_api.cpp")
list(APPEND SOURCES "src/c_api.cpp")

# Only build the R part of the library if building for
# use with the R package
if(BUILD_FOR_R)
set(SOURCES "${SOURCES} src/lightgbm_R.cpp")
list(APPEND SOURCES "src/lightgbm_R.cpp")
endif(BUILD_FOR_R)

add_library(_lightgbm SHARED ${SOURCES})
Expand Down

0 comments on commit f1d7604

Please sign in to comment.