ubuntu技巧--ubuntu cmake c++11
来源:互联网 发布:一淘和淘宝到底哪个好 编辑:程序博客网 时间:2024/06/10 01:37
CMakeLists.txt中添加
include(CheckCXXCompilerFlag)CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)if(COMPILER_SUPPORTS_CXX11) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")elseif(COMPILER_SUPPORTS_CXX0X) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")else() message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")endif()
0 0
- ubuntu技巧--ubuntu cmake c++11
- ubuntu技巧--ubuntu下升级cmake
- 【ubuntu 12.04 安装cmake】
- opencv ubuntu cmake
- ubuntu cmake install
- ubuntu 安装 Cmake
- ubuntu安装使用cmake
- ubuntu下升级cmake
- ubuntu下CMake学习
- ubuntu升级cmake
- ubuntu系统cmake升级
- ubuntu技巧--ubuntu pycharm
- ubuntu技巧
- ubuntu技巧
- ubuntu技巧
- Ubuntu技巧
- ubuntu 技巧
- UBuntu CMake工程配置基础
- HTTP和HTTPS的区别
- ios判读键盘是否出现和消失
- Computer Graphic & OpenGL
- 面试经典问题---select、poll、epoll之间有什么区别
- QT5.5 vs2013 更改窗口icon图标
- ubuntu技巧--ubuntu cmake c++11
- 可展开列表ExpandableListView—BaseExpandableListAdapter
- Bootstrap javascript插件 模态框
- mac OS X 上设置动态JAVA_HOME
- Salesforce事务执行顺序(Triggers and Order of Execution)
- 互联网思维提升与电子商务转型
- LeetCode: 8. String to Integer 【java 解题】
- C/C++程序从编译到最终生成可执行文件的过程分析
- IOS 开发使用UITableView 实现滑动 删除等多个按钮