Skip to content

Commit

Permalink
Use object library in R.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Apr 12, 2019
1 parent 3d31a81 commit eba8bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R-package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ message(STATUS "LIBR_CORE_LIBRARY " ${LIBR_CORE_LIBRARY})
file(GLOB_RECURSE R_SOURCES
${CMAKE_CURRENT_LIST_DIR}/src/*.cc
${CMAKE_CURRENT_LIST_DIR}/src/*.c)
add_library(xgboost-r ${R_SOURCES})
# Use object library to expose R symbols
add_library(xgboost-r OBJECT ${R_SOURCES})

set(R_DEFINITIONS
-DXGBOOST_STRICT_R_MODE=1
Expand Down

0 comments on commit eba8bac

Please sign in to comment.