title: cmake find_path/find_library failed check
body: <p>I'm using <a href="http://www.cmake.org/Wiki/CMake_2.8.2_Docs" rel="nofollow">CMake 2.8.2</a> version. The project is using lots of external files and custom libraries (unavailable through find_package) and there is a long cascade of elements like the one below:</p>
  
  <pre><code>find_path(XXX_INCLUDE_DIR XXX.h /XXX/include)
  if (XXX_INCLUDE_DIR)
    message(STATUS "Includes (XXX) found in ${XXX_INCLUDE_DIR}")
  else()
    message(FATAL_ERROR "Includes (XXX) not found")
  endif()
  </code></pre>
  
  <p>There is over 20 things like this in the script - it doesn't look good. According to the documentation, unfortunately, neither find_path nor find_library have a REQUIRED option which would do the job here (just like it does with find_package - if not found, the script stops). Do you have an idea how can I shorten the CMake script code? Something like</p>
  
  <pre><code>find_path(XXX_INCLUDE_DIR XXX.h /XXX/include REQUIED)
  </code></pre>
  
  <p>or something similar would be great.</p>