Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

struct_pb ubuntu1804 gcc-9编译通过,但安装后 struct_pb.cmake 无法直接使用,且缺少 struct_pb_helper.cmake 文件 #594

Closed
171930433 opened this issue Feb 5, 2024 · 4 comments
Labels
bug Something isn't working cmake cmake build system

Comments

@171930433
Copy link
Contributor

image

默认分支,
安装后,无法使用target_protos_struct_pb 等函数生成 struct_pb.h

@PikachuHyA
Copy link
Collaborator

可以给个复现的demo代码,我测试一下吗?

@171930433
Copy link
Contributor Author

可以给个复现的demo代码,我测试一下吗?

你好,这个就是最新分支的源码,安装后使用,或者运行test时,全局搜索也没有找到 struct_pb_helper.cmake 这个文件。if("${yaLanTingLibs_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")

If this is a subproject in ylt

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/examples)

else() 走这个分支编译,运行example都是没问题的

@poor-circle poor-circle added bug Something isn't working cmake cmake build system labels Feb 7, 2024
@PikachuHyA
Copy link
Collaborator

的确有问题,我年后再修复吧

@PikachuHyA
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cmake cmake build system
Projects
None yet
Development

No branches or pull requests

3 participants