[CI] standardize else() and enfunction() calls in CMake scripts (#9653)
This commit is contained in:
@@ -3,7 +3,7 @@ if (USE_DMLC_GTEST)
|
||||
message(FATAL_ERROR "USE_DMLC_GTEST=ON but dmlc-core didn't bundle gtest")
|
||||
endif()
|
||||
set(GTEST_LIBRARIES gtest)
|
||||
else (USE_DMLC_GTEST)
|
||||
else()
|
||||
find_package(GTest REQUIRED)
|
||||
endif()
|
||||
file(GLOB_RECURSE TEST_SOURCES "*.cc")
|
||||
@@ -21,7 +21,7 @@ endif()
|
||||
if (PLUGIN_FEDERATED)
|
||||
target_include_directories(testxgboost PRIVATE ${xgboost_SOURCE_DIR}/plugin/federated)
|
||||
target_link_libraries(testxgboost PRIVATE federated_client)
|
||||
else (PLUGIN_FEDERATED)
|
||||
else()
|
||||
file(GLOB_RECURSE FEDERATED_TEST_SOURCES "plugin/*_federated_*.*")
|
||||
list(REMOVE_ITEM TEST_SOURCES ${FEDERATED_TEST_SOURCES})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user