# Copyright (c) 2011 Bryce Lelbach # Copyright (c) 2012-2013 Hartmut Kaiser # # SPDX-License-Identifier: BSL-1.0 # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # find required packages if(HPX_WITH_DOCUMENTATION) find_package(Doxygen) find_package(Sphinx) find_package(Breathe) if(NOT Sphinx_FOUND) hpx_error( "Sphinx is unavailable, sphinx documentation generation disabled. Set Sphinx_ROOT to your sphinx-build installation directory." ) set(HPX_WITH_DOCUMENTATION OFF) elseif(NOT Breathe_FOUND) hpx_error( "Breathe is unavailable, sphinx documentation generation disabled. Set Breathe_APIDOC_ROOT to your breathe-apidoc installation directory." ) set(HPX_WITH_DOCUMENTATION OFF) elseif(NOT DOXYGEN_FOUND) hpx_error( "Doxygen tool is unavailable, sphinx documentation generation disabled. Add the doxygen executable to your path or set the DOXYGEN_EXECUTABLE variable manually." ) set(HPX_WITH_DOCUMENTATION OFF) endif() endif()