Skip to content

Commit

Permalink
Link Errors - Fix for VXU (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiritigowda authored Jun 29, 2021
1 parent f49dd5a commit f2a616b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion amd_openvx/openvx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ else()
target_compile_definitions(vxu PUBLIC ENABLE_OPENCL=0)
target_compile_definitions(vxu PUBLIC ENABLE_HIP=0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2 -std=c++14")
message("-- ${Yellow}WARNING:OpenCL/HIP Not Found -- OpenVX built for CPU only${ColourReset}")
message("-- ${Yellow}WARNING:OpenCL/HIP Not Found or GPU Support Turned OFF -- OpenVX built for CPU only${ColourReset}")
endif()

install(TARGETS openvx DESTINATION lib)
Expand Down Expand Up @@ -168,4 +168,5 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2 -std=c++11")
target_link_libraries(openvx dl m)
target_link_libraries(vxu openvx)
endif()
2 changes: 1 addition & 1 deletion utilities/runvx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ else()
target_link_libraries(runvx openvx pthread)
target_compile_definitions(runvx PUBLIC ENABLE_OPENCL=0)
target_compile_definitions(runvx PUBLIC ENABLE_HIP=0)
message("-- ${Yellow}NOTE:GPU Support Not Found -- runVX built for CPU only${ColourReset}")
message("-- ${Yellow}NOTE:GPU Support Not Found or Turned OFF -- runVX built for CPU only${ColourReset}")
endif()

if(OpenCV_FOUND)
Expand Down

0 comments on commit f2a616b

Please sign in to comment.