Skip to content

Commit

Permalink
Replace spaces in Doxygen tag file names
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Sep 8, 2021
1 parent de0ab67 commit a8f955c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions XeusClingSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,21 @@ function(xeus_cling_setup)
if(IS_ABSOLUTE "${tag}")
set(fulltag "${tag}")
else()
# Check for a potentially existing tag file in the source
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${tag})
set(fulltag "${CMAKE_CURRENT_SOURCE_DIR}/${tag}")
else()
# We download tag files into the build directory
set(fulltag "${CMAKE_CURRENT_BINARY_DIR}/${tag}")
message("-- Attempting to fetch tag file from ${url}/${tag}")

# Deal with spaces in tag names
string(REPLACE " " "%20" webtag "${tag}")

# Do the actual download
message("-- Attempting to fetch tag file from ${url}/${webtag}")
file(
DOWNLOAD
"${url}${tag}"
"${url}${webtag}"
"${fulltag}"
STATUS status
)
Expand Down

0 comments on commit a8f955c

Please sign in to comment.