mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:30:26 +08:00
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:
committed by
Facebook GitHub Bot
parent
3e68d0c5d0
commit
cfab65d90d
@ -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
|
||||
|
Reference in New Issue
Block a user