Skip to content

Commit

Permalink
cmake: use ${CMAKE_CURRENT_SOURCE_DIR} where possible
Browse files Browse the repository at this point in the history
This makes things rely less on their current relative locations in the
sources.
  • Loading branch information
pinotree committed Aug 19, 2023
1 parent 24e6847 commit 7e31599
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(zug_ssh_method
Expand All @@ -19,5 +19,5 @@ set(zug_ssh_method
add_custom_target(upload-docs
COMMAND
rsync -av -e \"${zug_ssh_method}\"
${CMAKE_SOURCE_DIR}/doc/_build/html/*
${CMAKE_CURRENT_SOURCE_DIR}/_build/html/*
raskolnikov@sinusoid.es:public/zug/)

0 comments on commit 7e31599

Please sign in to comment.