[CI] standardize endif() calls in CMake scripts (#9637)

This commit is contained in:
James Lamb
2023-10-07 22:45:20 -05:00
committed by GitHub
parent 799f8485e2
commit db8d117f7e
13 changed files with 99 additions and 99 deletions

View File

@@ -1,6 +1,6 @@
if (NVML_LIBRARY)
unset(NVML_LIBRARY CACHE)
endif(NVML_LIBRARY)
endif()
set(NVML_LIB_NAME nvml)

View File

@@ -39,7 +39,7 @@ if (NCCL_LIBRARY)
if(NOT USE_NCCL_LIB_PATH)
# Don't cache NCCL_LIBRARY to enable switching between static and shared.
unset(NCCL_LIBRARY CACHE)
endif(NOT USE_NCCL_LIB_PATH)
endif()
endif()
if (BUILD_WITH_SHARED_NCCL)
@@ -48,7 +48,7 @@ if (BUILD_WITH_SHARED_NCCL)
else ()
# libnccl_static.a
set(NCCL_LIB_NAME nccl_static)
endif (BUILD_WITH_SHARED_NCCL)
endif()
find_path(NCCL_INCLUDE_DIR
NAMES nccl.h