Skip to content

Commit

Permalink
[CMake] Download TensorBoard dependencies to separate directories to …
Browse files Browse the repository at this point in the history
…avoid filename conflicts.
  • Loading branch information
NORTHAMERICA\vistepan committed Nov 26, 2016
1 parent 4e9bca8 commit f0fc6c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tensorflow/contrib/cmake/external/tensorboard.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function(tb_new_http_archive)
ExternalProject_Add(${_TB_NAME}
PREFIX ${_TB_NAME}
URL ${_TB_URL}
DOWNLOAD_DIR "${DOWNLOAD_LOCATION}"
DOWNLOAD_DIR "${DOWNLOAD_LOCATION}/${_TB_NAME}"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
Expand All @@ -30,9 +30,9 @@ endfunction()
function(tb_http_file)
cmake_parse_arguments(_TB "" "NAME;URL" "" ${ARGN})
get_filename_component(src_file ${_TB_URL} NAME)
file(DOWNLOAD ${_TB_URL} "${DOWNLOAD_LOCATION}/${src_file}")
file(DOWNLOAD ${_TB_URL} "${DOWNLOAD_LOCATION}/${_TB_NAME}/${src_file}")

set(src_dir "${DOWNLOAD_LOCATION}")
set(src_dir "${DOWNLOAD_LOCATION}/${_TB_NAME}")
set(dst_dir "${CMAKE_CURRENT_BINARY_DIR}/tensorboard_external/${_TB_NAME}/file")

add_custom_command(
Expand Down

0 comments on commit f0fc6c0

Please sign in to comment.