www.1862.net > 如何写CmAkE使其包含C++11特性

如何写CmAkE使其包含C++11特性

直接测试新写法:[plain]viewplaincopy#CMakeLists.txtproject(test)cmake_minimum_required(VERSION2.8)aux_source_directory(.SRC_LIST)add_executable(${PROJECT_NAME}${SRC_LIST})include(CheckCXXCompilerFlag)CHECK_CXX_COMPILER_FLAG("-s...

添加 C flags # default SET(CMAKE_CXX_FLAGS " $ENV{CXXFLAGS} -Wall -g -ggdb -O3 --std=c++11") # use cmake -DCMAKE_BUILD_TYPE=debug .. #SET(CMAKE_CXX_FLAGS_DEBUG " $ENV{CXXFLAGS} -Wall -g -ggdb --std=c++11") # use cmake -DCMAKE_B...

直接测试新写法: [plain] view plain copy #CMakeLists.txt project(test) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) add_executable(${PROJECT_NAME} ${SRC_LIST}) include(CheckCXXCompilerFlag) CHECK_CXX_COM...

网站地图

All rights reserved Powered by www.1862.net

copyright ©right 2010-2021。
www.1862.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com