Skip to content

Commit

Permalink
Merge pull request #269 from pinotree/cmake-current-dir
Browse files Browse the repository at this point in the history
cmake: use ${CMAKE_CURRENT_SOURCE_DIR} where possible
  • Loading branch information
arximboldi authored Aug 21, 2023
2 parents d0b79d5 + e0c4b17 commit 5875f77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

add_custom_target(doxygen
COMMAND doxygen doxygen.config
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/doc")
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")

add_custom_target(docs
COMMAND make html
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/doc")
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
add_dependencies(docs doxygen)

set(immer_ssh_method
Expand All @@ -18,5 +18,5 @@ set(immer_ssh_method
add_custom_target(upload-docs
COMMAND
rsync -av -e \"${immer_ssh_method}\"
${CMAKE_SOURCE_DIR}/doc/_build/html/*
${CMAKE_CURRENT_SOURCE_DIR}/_build/html/*
[email protected]:public/immer/)

0 comments on commit 5875f77

Please sign in to comment.