Skip to content

Commit

Permalink
[BUILD] enhance build script for optional vta dep (apache#6497)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored and kevinthesun committed Sep 17, 2020
1 parent 195f054 commit ffd7f05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/modules/VTA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ else()
set(VTA_HW_PATH $ENV{VTA_HW_PATH})
endif()

message(STATUS "VTA build with VTA_HW_PATH=" ${VTA_HW_PATH})

if(MSVC)
message(STATUS "VTA build is skipped in Windows..")
elseif(NOT EXISTS ${VTA_HW_PATH})
if (USE_VTA_TSIM OR USE_VTA_FSIM OR USE_UFPGA)
message(FATAL_ERROR "VTA path " ${VTA_HW_PATH} " does not exist")
endif()
elseif(PYTHON)
message(STATUS "VTA build with VTA_HW_PATH=" ${VTA_HW_PATH})
set(VTA_CONFIG ${PYTHON} ${VTA_HW_PATH}/config/vta_config.py)

if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/vta_config.json)
Expand Down

0 comments on commit ffd7f05

Please sign in to comment.