--- a/cmake/tribits/common_tpls/find_modules/FindHDF5.cmake
+++ b/cmake/tribits/common_tpls/find_modules/FindHDF5.cmake
@@ -228,7 +228,7 @@
   endforeach()  
 
   # Now match all the -I flags
-  if (${_cflags}) 
+  if (_cflags)
     string(REGEX MATCHALL "-I([^\" ]+|\"[^\"]+\")" _inc_path_flags ${_cflags})
 
     # Loop through each
