From 2a58d5158614a911901636e51603f210c16953ba Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Tue, 10 Jan 2017 16:22:28 +0000 Subject: [PATCH] Clean option setup in SDL example. --- examples/SDL/SDL.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/SDL/SDL.cs b/examples/SDL/SDL.cs index e872fdfc..b0114377 100644 --- a/examples/SDL/SDL.cs +++ b/examples/SDL/SDL.cs @@ -9,13 +9,14 @@ namespace CppSharp { public void Setup(Driver driver) { - var parserOptions = driver.ParserOptions; var options = driver.Options; options.LibraryName = "SDL"; options.Headers.Add("SDL.h"); + options.OutputDir = "SDL"; + + var parserOptions = driver.ParserOptions; var sdlPath = Path.Combine(GetExamplesDirectory("SDL"), "SDL-2.0/include"); parserOptions.AddIncludeDirs(sdlPath); - options.OutputDir = "SDL"; } public void SetupPasses(Driver driver)