CMake/Tutorials/C++11Flags
From KitwarePublic
< CMake | Tutorials
Jump to navigationJump to search
Revision as of 15:27, 21 September 2012 by Daviddoria (talk | contribs) (Created page with "<source lang=cmake> cmake_minimum_required(VERSION 2.6) PROJECT(Test) if(UNIX) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x") endif() # MSVC does not require...")
<source lang=cmake> cmake_minimum_required(VERSION 2.6)
PROJECT(Test)
if(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")
endif()
- MSVC does not require any special flags
</source>