Skip to content

Commit

Permalink
Merge pull request #10640 from reyoung/feature/build_doc_cmake
Browse files Browse the repository at this point in the history
Change cmake for build doc
  • Loading branch information
weixing02 authored May 15, 2018
2 parents b7026f7 + 6d8cc88 commit dfdcb7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ message(STATUS "CXX compiler: ${CMAKE_CXX_COMPILER}, version: "
message(STATUS "C compiler: ${CMAKE_C_COMPILER}, version: "
"${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}")

find_package(Sphinx)
if(NOT CMAKE_CROSSCOMPILING)
find_package(CUDA QUIET)
endif(NOT CMAKE_CROSSCOMPILING)
Expand Down Expand Up @@ -226,5 +225,7 @@ if(WITH_PYTHON)
endif()

if(WITH_DOC)
find_package(Sphinx REQUIRED)
find_python_module(recommonmark REQUIRED)
add_subdirectory(doc)
endif()

0 comments on commit dfdcb7e

Please sign in to comment.