Skip to content

Commit 72ee950

Browse files
committed
fix cmake bug (apache#21)
1 parent 440fdc6 commit 72ee950

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cmake/modules/VTA.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ elseif(PYTHON)
3939
endif(APPLE)
4040

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

0 commit comments

Comments
 (0)