From f1d76047eac4bb65a552e8654256e30b0859cbc7 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 25 Mar 2020 13:01:08 -0500 Subject: [PATCH] fixed list of SOURCES --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5ae0435055b..1d1d8d585ae4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})