From c0915935d992d3752ac919d9dede4dad2aab226e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 18 Feb 2010 07:21:03 -0800 Subject: [PATCH] Build with -funswitch-loops when available --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a4945a0..0190b53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,11 @@ ELSE(MSVC) ADD_DEFINITIONS(-Wextra) ENDIF(HAVE_WEXTRA) ADD_DEFINITIONS(-Wall) + + CHECK_C_COMPILER_FLAG(-funswitch-loops HAVE_FUNSWITCH_LOOPS) + IF(HAVE_FUNSWITCH_LOOPS) + ADD_DEFINITIONS(-funswitch-loops) + ENDIF(HAVE_FUNSWITCH_LOOPS) ENDIF(MSVC) -- 2.11.4.GIT