solution "snowball"
configurations { "Debug-Static", "Release-Static", "Debug-Shared", "Release-Shared" }

project "snowball"
language "C++"

  files { "src/*.cc", "src/*.hh", "include/*.h" }

  includedirs { "include" }
  buildoptions { "-std=c++11", "-stdlib=libc++" }
  defines { "SZ_BUILDING" }

  flags { "ExtraWarnings" }

  configuration "Debug-*"
    defines { "DEBUG" }
    flags { "Symbols" }

  configuration "Release-*"
    defines { "NDEBUG" }
    flags { "Optimize" }

  configuration "*-Static"
    kind "StaticLib"

  configuration "*-Shared"
    kind "SharedLib"


solution "snowball"
configurations { "Debug-Static", "Release-Static", "Debug-Shared", "Release-Shared" }

newoption {
  trigger       = "c++11",
  description   = "Enables compilation with c++11 -- uses libc++ instead\n"..
"                   of libstdc++ as the stdlib"
}

project "snowball"
language "C++"

  files { "src/*.cc", "src/*.hh", "include/*.h" }

  includedirs { "include" }
  defines { "SZ_BUILDING" }

  flags { "ExtraWarnings" }

  configuration "c++11"
    buildoptions { "-std=c++11", "-stdlib=libc++" }

  configuration "Debug-*"
    defines { "DEBUG" }
    flags { "Symbols" }

  configuration "Release-*"
    defines { "NDEBUG" }
    flags { "Optimize" }

  configuration "*-Static"
    kind "StaticLib"

  configuration "*-Shared"
    kind "SharedLib"

Make C++11 a build option rather than mandatory. For now.
Make C++11 a build option rather than mandatory. For now.

I have a feeling this won't be optional for very long.
