Added check for extra compiler flags if using gcc
This commit is contained in:
parent
174f2c1fe7
commit
6c8600ab52
@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
project (YAML_CPP)
|
||||
|
||||
SET(CMAKE_CXX_FLAGS "-O2 -Wall -pedantic -Wextra")
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
set(CMAKE_CXX_FLAGS "-O2 -Wall -pedantic -Wextra")
|
||||
endif(CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
set(YAML_CPP_VERSION_MAJOR "0")
|
||||
set(YAML_CPP_VERSION_MINOR "1")
|
||||
|
Loading…
Reference in New Issue
Block a user