Commit 6c8600ab authored by Jesse Beder's avatar Jesse Beder
Browse files

Added check for extra compiler flags if using gcc

parent 174f2c1f
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment