If building with LLVM_ENABLE_DOXYGEN and using CMake then
authorDan Liew <dan@su-root.co.uk>
Mon, 28 Apr 2014 09:10:05 +0000 (09:10 +0000)
committerDan Liew <dan@su-root.co.uk>
Mon, 28 Apr 2014 09:10:05 +0000 (09:10 +0000)
abort while configuring if doxygen could not be found. This
is desirable because if the build is going to fail then it should
fail as early as possible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207404 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/config-ix.cmake

index d1e4b2a64ea093a750009f020e8bd9801c85d775..ca4af73d92c8e0c8a69ccb9d70f0f87bb02621db 100755 (executable)
@@ -486,7 +486,7 @@ set(LLVM_PREFIX ${CMAKE_INSTALL_PREFIX})
 
 if (LLVM_ENABLE_DOXYGEN)
   message(STATUS "Doxygen enabled.")
-  find_package(Doxygen)
+  find_package(Doxygen REQUIRED)
 
   if (DOXYGEN_FOUND)
     # If we find doxygen and we want to enable doxygen by default create a