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

如何通过cmake设置c++标准版本呢 #62

Closed
kaidegit opened this issue Mar 16, 2025 · 2 comments
Closed

如何通过cmake设置c++标准版本呢 #62

kaidegit opened this issue Mar 16, 2025 · 2 comments

Comments

@kaidegit
Copy link

在sdk的toolchain.cmake中被设为了c++11,似乎使用sdk_src添加的文件都被设置为c++11了。

@jhqian
Copy link
Contributor

jhqian commented Mar 25, 2025

的确没有开放这个选项,后面会放开这个选项

@kaidegit
Copy link
Author

kaidegit commented Apr 5, 2025

似乎1.9.0已经提供了

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
endif()

@kaidegit kaidegit closed this as completed Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants