One more change
@@ -5,6 +5,12 @@ set(UUIDLIB -luuid)
set(COMMONLIB -ldl)
set(LIBCURL_LIB -lcurl)
+EXECUTE_PROCESS( COMMAND grep -o ^NAME=.* /etc/os-release COMMAND cut -f2 -d\" COMMAND sed s/\"//g OUTPUT_VARIABLE os_name )
+EXECUTE_PROCESS( COMMAND grep -o ^VERSION_ID=.* /etc/os-release COMMAND cut -f2 -d\" COMMAND sed s/\"//g OUTPUT_VARIABLE os_version )
+
+if ( ( ${os_name} MATCHES "Red Hat" OR ${os_name} MATCHES "CentOS") AND ( ${os_version} MATCHES "7" ) )
+ add_compile_options(-D RHEL_CENTOS_7)
+endif()
# Locate GTest
find_package(GTest REQUIRED)
