Use configure_file() to configure version only (#4974)
* Avoid writing build_config.h * Remove build_config.h all together. * Lint.
This commit is contained in:
committed by
Philip Hyunsu Cho
parent
5b1715d97c
commit
f24be2efb4
@@ -1,8 +1,8 @@
|
||||
function (write_version)
|
||||
message(STATUS "xgboost VERSION: ${xgboost_VERSION}")
|
||||
configure_file(
|
||||
${xgboost_SOURCE_DIR}/cmake/build_config.h.in
|
||||
${xgboost_SOURCE_DIR}/include/xgboost/build_config.h @ONLY)
|
||||
${xgboost_SOURCE_DIR}/cmake/version_config.h.in
|
||||
${xgboost_SOURCE_DIR}/include/xgboost/version_config.h @ONLY)
|
||||
configure_file(
|
||||
${xgboost_SOURCE_DIR}/cmake/Python_version.in
|
||||
${xgboost_SOURCE_DIR}/python-package/xgboost/VERSION
|
||||
|
||||
Reference in New Issue
Block a user