Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Resolves 'help' target conflict when embedding as a submodule.
  • Loading branch information
AndreLouisCaron committed Mar 14, 2012
1 parent 01c0ebb commit bce6687
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions CMakeLists.txt
Expand Up @@ -109,14 +109,12 @@ include_directories(${w32_include_dir})
# Build all libraries.
add_subdirectory(code)

# When building in standalone mode, build demo projects.
# When building in standalone mode, build demo projects and documentation.
if(${PROJECT_NAME} STREQUAL ${CMAKE_PROJECT_NAME})
add_subdirectory(demo)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY
)
add_api_documentation(help)
endif()

# Compile inline API documentation.
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY
)
add_api_documentation(help)

0 comments on commit bce6687

Please sign in to comment.