diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 62ad582ba..a5f200986 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -2,7 +2,7 @@ add_subdirectory(MaaUtils) add_subdirectory(MaaControlUnit) if(WITH_THRIFT AND NOT MAA_CROSSCOMPILE) add_subdirectory(MaaThriftController) -endif(WITH_THRIFT) +endif(WITH_THRIFT AND NOT MAA_CROSSCOMPILE) if(WITH_GRPC) add_subdirectory(MaaRpc) endif(WITH_GRPC) diff --git a/source/MaaFramework/CMakeLists.txt b/source/MaaFramework/CMakeLists.txt index 5640b75c8..a5abf689f 100644 --- a/source/MaaFramework/CMakeLists.txt +++ b/source/MaaFramework/CMakeLists.txt @@ -28,9 +28,9 @@ target_link_libraries(MaaFramework ${OpenCV_LIBS} fastdeploy_ppocr ONNXRuntime:: # target_link_libraries(MaaFramework range-v3::range-v3) endif () add_dependencies(MaaFramework MaaControlUnit MaaUtils) -if(WITH_THRIFT) +if(WITH_THRIFT AND NOT MAA_CROSSCOMPILE) add_dependencies(MaaFramework MaaThriftController) -endif(WITH_THRIFT) +endif(WITH_THRIFT AND NOT MAA_CROSSCOMPILE) install( TARGETS MaaFramework