diff --git a/plugin/example/README.md b/plugin/example/README.md index 0d5ef15ed..22eddce1e 100644 --- a/plugin/example/README.md +++ b/plugin/example/README.md @@ -9,8 +9,7 @@ There are three steps you need to do to add a plugin to xgboost - In this example ```XGBOOST_REGISTER_OBJECTIVE``` in [this line](custom_obj.cc#L78) - Add a line to `xgboost/plugin/CMakeLists.txt`: ``` -set(PLUGINS_SOURCES ${PLUGINS_SOURCES} - ${xgboost_SOURCE_DIR}/plugin/example/custom_obj.cc PARENT_SCOPE) +target_sources(objxgboost PRIVATE ${xgboost_SOURCE_DIR}/plugin/example/custom_obj.cc) ``` Then you can test this plugin by using ```objective=mylogistic``` parameter.