Added check for extra compiler flags if using gcc

This commit is contained in:
Jesse Beder 2009-07-10 17:26:39 +00:00
parent 174f2c1fe7
commit 6c8600ab52

View File

@ -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")