Skip to content

Commit

Permalink
fix cmake bug (apache#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoreau89 committed Dec 1, 2018
1 parent 8151627 commit e549c46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/modules/VTA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ elseif(PYTHON)
endif(APPLE)

# PYNQ rules for pynq v2.3
find_library(__cma_lib NAMES cma PATH /usr/lib)
target_link_libraries(vta ${__cma_lib})
if (${VTA_TARGET} STREQUAL "pynq" OR ${VTA_TARGET} STREQUAL "ultra96")
find_library(__cma_lib NAMES cma PATH /usr/lib)
target_link_libraries(vta ${__cma_lib})
endif()
else()
message(STATUS "Cannot found python in env, VTA build is skipped..")
endif()

0 comments on commit e549c46

Please sign in to comment.