Skip to content

Commit

Permalink
Fixed #930: make git-docs is broken
Browse files Browse the repository at this point in the history
Fixed #918: Link to hello_world.cpp is broken
  • Loading branch information
sithhell committed Oct 6, 2013
1 parent 5a4e452 commit 061c3a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions cmake/HPX_UpdateGitDocs.cmake
Expand Up @@ -37,17 +37,18 @@ file(
if(HPX_BUILD_TYPE)
set(doc_dir ${CMAKE_BINARY_DIR}/${HPX_BUILD_TYPE}/../share/hpx-${HPX_VERSION})
else()
set(doc_dir ${CMAKE_BINARY_DIR}/../share/hpx)
set(doc_dir ${CMAKE_BINARY_DIR}/../share/hpx-${HPX_VERSION})
endif()

# disable copying source files for now, this needs to be fixed...
#file(
# COPY ${doc_dir}/docs
# DESTINATION ${CMAKE_BINARY_DIR}/gh-pages)
file(
COPY ${doc_dir}/docs
DESTINATION ${CMAKE_BINARY_DIR}/gh-pages)

# copy all source files the docs depend upon
if(HPX_DOCUMENTATION_FILES)
foreach(file ${HPX_DOCUMENTATION_FILES})
string(REPLACE " " ";" HPX_DOCUMENTATION_FILES_LIST "${HPX_DOCUMENTATION_FILES}")
foreach(file ${HPX_DOCUMENTATION_FILES_LIST})
file(COPY ${file}
DESTINATION ${CMAKE_BINARY_DIR}/gh-pages/docs/html/code)
endforeach()
Expand Down
5 changes: 3 additions & 2 deletions docs/CMakeLists.txt
Expand Up @@ -172,13 +172,14 @@ if(MSVC)
-DHPX_BUILD_TYPE="${CMAKE_BUILD_TYPE}"
-DHPX_SOURCE_DIR="${CMAKE_SOURCE_DIR}"
-DHPX_VERSION="${HPX_VERSION}"
-DHPX_DOCUMENTATION_FILES=${documentation_dependencies}
-DHPX_DOCUMENTATION_FILES=\"${documentation_dependencies}\"
-P ${CMAKE_SOURCE_DIR}/cmake/HPX_UpdateGitDocs.cmake)
else()
add_custom_target(git_docs
COMMAND ${CMAKE_COMMAND}
-DHPX_SOURCE_DIR="${CMAKE_SOURCE_DIR}"
-DHPX_DOCUMENTATION_FILES=${documentation_dependencies}
-DHPX_VERSION="${HPX_VERSION}"
-DHPX_DOCUMENTATION_FILES=\"${documentation_dependencies}\"
-P ${CMAKE_SOURCE_DIR}/cmake/HPX_UpdateGitDocs.cmake)
endif()

Expand Down

0 comments on commit 061c3a3

Please sign in to comment.