Fix:Mismatch of IF and ENDIF expressions when compiling with clang

- When bmcweb is compiled with clang compiler, Cmake throws a warning
  as the expressions of IF and ENDIF are mismatched.
- This commit would fix the warning.

Tested By:
- When cmake is triggered with clang compiler, the warning goes away.

Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I836df40b80b7a230a3d24f51e741ba88e6652b9c
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 62e1b14..1b88ea4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -241,8 +241,8 @@
             -Wformat=2 \
         "
         )
-    endif (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0)
-endif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+    endif (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0)
+endif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-rtti")
 
 # general