Fix build on jetson (#281)

* Fix compile on Jetson

* trigger ci
This commit is contained in:
Jason
2022-09-26 19:23:30 +08:00
committed by GitHub
parent 85c44d562e
commit 36eb6fbba6
3 changed files with 4 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ setup_configs["PY_LIBRARY_NAME"] = PACKAGE_NAME + "_main"
setup_configs["OPENCV_DIRECTORY"] = os.getenv("OPENCV_DIRECTORY", "")
setup_configs["ORT_DIRECTORY"] = os.getenv("ORT_DIRECTORY", "")
if setup_configs["WITH_GPU"] == "ON":
if setup_configs["WITH_GPU"] == "ON" or setup_configs["BUILD_ON_JETSON"] == "ON":
wheel_name = "fastdeploy-gpu-python"
if os.getenv("CMAKE_CXX_COMPILER", None) is not None: