Skip to content

Commit

Permalink
creating ./docs folder while compiling docs
Browse files Browse the repository at this point in the history
The generation of the documentation using Doxygen using the build script `./build.sh d` was not working. The problem was located in *build/CMakeFiles/doc.dir/build.make* line 58 where the `CMakeFiles/doc` target tries to enter the *./docs* folder at the root directory of the repository. Since this folder is not created by either the build script or CMake the generation of the documentation fails.

To solve this issue I introduced a line in the *./CMakeList.txt* file creating the missing *./docs/* folder.
  • Loading branch information
theGreatWhiteShark committed Jul 20, 2018
1 parent a89f053 commit 6e71fc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/docs)
add_custom_target(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/docs
Expand Down

0 comments on commit 6e71fc1

Please sign in to comment.