mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 03:44:59 +00:00
CMake: Fix docs-llvm-man target when clang+llvm is in the same source tree
Summary: This was broken by r302499. Configuring with -DLLVM_BUILD_DOCS=ON would cause the docs-llvm-man target not to be created. Reviewers: anemet, beanz Reviewed By: anemet Subscribers: llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D33146 llvm-svn: 303042
This commit is contained in:
parent
6d2417924c
commit
418a8e3442
@ -1,9 +1,9 @@
|
||||
|
||||
# Create sphinx target
|
||||
if (LLVM_ENABLE_SPHINX AND NOT TARGET sphinx)
|
||||
if (LLVM_ENABLE_SPHINX)
|
||||
message(STATUS "Sphinx enabled.")
|
||||
find_package(Sphinx REQUIRED)
|
||||
if (LLVM_BUILD_DOCS)
|
||||
if (LLVM_BUILD_DOCS AND NOT TARGET sphinx)
|
||||
add_custom_target(sphinx ALL)
|
||||
endif()
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user