From 620876e0e717b13f61e1d0b5c37047d616bda242 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 28 Jul 2016 11:01:28 +0200 Subject: [PATCH] gsdx: fix compilation error with ICC just require the -restrict compilation flag --- plugins/GSdx/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/GSdx/CMakeLists.txt b/plugins/GSdx/CMakeLists.txt index dd4fca69bf..72058f47a8 100644 --- a/plugins/GSdx/CMakeLists.txt +++ b/plugins/GSdx/CMakeLists.txt @@ -17,6 +17,10 @@ set(CommonFlags -Wunused-variable # __dummy variable need to be investigated ) +if(USE_ICC) + set(CommonFlags "${CommonFlags} -restrict") +endif() + set(GSdxFinalFlags ${CommonFlags}) if(XDG_STD)