Skip to content

Commit

Permalink
Enfore cmake configure file newline style (#11129)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Jan 6, 2025
1 parent bd92b1c commit a950562
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ if(GOOGLE_TEST)
configure_file(
${xgboost_SOURCE_DIR}/tests/cli/machine.conf.in
${xgboost_BINARY_DIR}/tests/cli/machine.conf
@ONLY)
@ONLY
NEWLINE_STYLE UNIX)
if(BUILD_DEPRECATED_CLI)
add_test(
NAME TestXGBoostCLI
Expand Down
4 changes: 3 additions & 1 deletion cmake/Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ function(write_version)
message(STATUS "xgboost VERSION: ${xgboost_VERSION}")
configure_file(
${xgboost_SOURCE_DIR}/cmake/version_config.h.in
${xgboost_SOURCE_DIR}/include/xgboost/version_config.h @ONLY)
${xgboost_SOURCE_DIR}/include/xgboost/version_config.h
@ONLY
NEWLINE_STYLE UNIX)
endfunction()

0 comments on commit a950562

Please sign in to comment.