[CI] address cmakelint warnings about whitespace (#9674)

This commit is contained in:
James Lamb
2023-10-13 23:46:07 -05:00
committed by GitHub
parent 53049b16b8
commit eb562d3829
15 changed files with 133 additions and 128 deletions

View File

@@ -11,7 +11,7 @@ set_source_files_properties(
PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
target_sources(objxgboost PRIVATE ${RABIT_SOURCES})
if (USE_CUDA)
if(USE_CUDA)
file(GLOB_RECURSE CUDA_SOURCES *.cu *.cuh)
target_sources(objxgboost PRIVATE ${CUDA_SOURCES})
endif()
@@ -22,7 +22,7 @@ target_include_directories(objxgboost
${xgboost_SOURCE_DIR}/dmlc-core/include
${xgboost_SOURCE_DIR}/rabit/include)
if (LOG_CAPI_INVOCATION)
if(LOG_CAPI_INVOCATION)
target_compile_definitions(objxgboost PRIVATE -DLOG_CAPI_INVOCATION=1)
endif()