From a3427f70276c58bea797cee0e2ba6eba158bbe7b Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 19 Nov 2016 19:59:47 +0100 Subject: [PATCH] Fixed build system error --- appveyor.yml | 4 ++-- test/gtc/gtc_noise.cpp | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ddd22d9d..f6329138 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,6 @@ before_build: - cmake -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON . build_script: - - cmake --build . - - ctest +- cmake --build . +- ctest diff --git a/test/gtc/gtc_noise.cpp b/test/gtc/gtc_noise.cpp index bfd65e2c..f3648146 100644 --- a/test/gtc/gtc_noise.cpp +++ b/test/gtc/gtc_noise.cpp @@ -1,5 +1,7 @@ #define GLM_ENABLE_EXPERIMENTAL #include + +#if GLM_LANG & GLM_LANG_CXX11_FLAG #include int test_simplex() @@ -149,13 +151,17 @@ int test_perlin_pedioric() return 0; } +#endif//GLM_LANG & GLM_LANG_CXX11_FLAG + int main() { int Error = 0; - Error += test_simplex(); - Error += test_perlin(); - Error += test_perlin_pedioric(); +# if GLM_LANG & GLM_LANG_CXX11_FLAG + Error += test_simplex(); + Error += test_perlin(); + Error += test_perlin_pedioric(); +# endif return Error; }