diff --git a/CMakeLists.txt b/CMakeLists.txt index 38db4dcde21e..ec6204be1a39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,9 +127,9 @@ endif() if(USE_DLOPEN_NCCL AND (NOT (CMAKE_SYSTEM_NAME STREQUAL "Linux"))) message(SEND_ERROR "`USE_DLOPEN_NCCL` supports only Linux at the moment.") endif() -if (USE_DLOPEN_NCCL AND BUILD_WITH_SHARED_NCCL) +if(USE_DLOPEN_NCCL AND BUILD_WITH_SHARED_NCCL) message(SEND_ERROR "`USE_DLOPEN_NCCL` can not be used with `BUILD_WITH_SHARED_NCCL`") -endif () +endif() if(JVM_BINDINGS AND R_LIB) message(SEND_ERROR "`R_LIB' is not compatible with `JVM_BINDINGS' as they both have customized configurations.") endif()