Fix CMake Dev warning in caffe2/CMakeLists.txt (#34886)

Summary:
If arguments of `ENDIF()` block are non-empty, they should match corresponding `IF()` BLOCK
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34886

Test Plan: CI

Differential Revision: D20494631

Pulled By: malfet

fbshipit-source-id: 5fed86239b4a0cb4b3aedd02c950c1b800199d2d
This commit is contained in:
Nikita Shulga
2020-03-17 12:15:53 -07:00
committed by Facebook GitHub Bot
parent 3e68d0c5d0
commit cfab65d90d

View File

@ -664,7 +664,7 @@ if (USE_LLVM AND LLVM_FOUND)
support core analysis executionengine instcombine
scalaropts transformutils native orcjit)
target_link_libraries(torch_cpu PRIVATE ${LLVM_LINK_LIBS})
endif (LLVM_FOUND)
endif (USE_LLVM AND LLVM_FOUND)
# This is required for older versions of CMake, which don't allow
# specifying add_library() without a list of source files