Skip to content

Commit

Permalink
Fix invalid target name
Browse files Browse the repository at this point in the history
Colons are not valid characters in target names, see
https://cmake.org/cmake/help/latest/policy/CMP0037.html
  • Loading branch information
ZedThree committed Oct 2, 2020
1 parent f1ab50b commit bad6658
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,9 @@ if((main_project OR BUILD_TESTING_${PROJECT_NAME}) AND BUILD_TESTING)
endif()

# documentation
if(main_project)
set(doc doc)
else()
set(doc ${NAMESPACE}doc)
endif()

find_package(Doxygen QUIET)
if(Doxygen_FOUND)
add_custom_target(${doc}
add_custom_target(doc
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/doc"
COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doc/doxygen_conf"
DEPENDS ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doc/doxygen_conf"
Expand Down

0 comments on commit bad6658

Please sign in to comment.