target_compile_features(${TARGET_NAME} PRIVATE cxx_std_17)
下面这种方法好像已经没有用了:
set(CMAKE_CXX_STANDARD 17)
来源:https://stackoverflow.com/questions/45688522/how-to-enable-c17-in-cmake
下面这种方法好像已经没有用了:
来源:https://stackoverflow.com/questions/45688522/how-to-enable-c17-in-cmake
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo