From a7df6ad42d963784539e995d30f2425c0998ee0a Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 20 Feb 2016 11:38:29 +0100 Subject: [PATCH] - Simplify CMake 'else() if(..)' to 'elseif(..)'. --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46ae21be32..1a42c515e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,10 +192,8 @@ option(FORCE_INTERNAL_GME "Use internal gme" ON) set( ZD_FASTMATH_FLAG "" ) if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) set( ZD_FASTMATH_FLAG "-ffast-math" ) -else() - if( MSVC ) - set( ZD_FASTMATH_FLAG "/fp:fast" ) - endif() +elseif( MSVC ) + set( ZD_FASTMATH_FLAG "/fp:fast" ) endif() if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )