CMake/Tutorials/C++11Flags

From KitwarePublic
< CMake‎ | Tutorials
Revision as of 18:32, 24 April 2018 by Brad.king (talk | contribs) (Add explicit preformat markup)
Jump to navigationJump to search

<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()

  1. MSVC does not require any special flags

</source>



CMake: [Welcome | Site Map]