title: CMake cannot find directory in when used with CLion, but works with Cmake GUI
body: <p>I am trying to load a cmake project via the CLion IDE (which is a cracking piece of work by the way) but for some reason I cannot locate a certain directory, even though they're all located in <code>/usr/local/</code>.</p>
  
  <p>The following error is returned</p>
  
  <blockquote>
    <p>Error:The following variables are used in this project, but they are
    set to NOTFOUND. Please set them or make sure they are set and tested
    correctly in the CMake files: Simbody_INCLUDE_DIR    used as include
    directory in directory
    /path/to/source</p>
  </blockquote>
  
  <p>For reference I am trying to compile a simple example in the simbody physics library: <a href="https://github.com/simbody/simbody" rel="nofollow">https://github.com/simbody/simbody</a></p>
  
  <p>Now for whatever reason, this must be an issue with CMake in CLion since I can generate the makefiles (using Unix Makefiles albeit on OS X) using the CMake standalone GUI. </p>
  
  <p>The default cmake files from simbody can be found here: <a href="https://github.com/simbody/simbody/blob/master/cmake/SampleCMakeLists.txt" rel="nofollow">https://github.com/simbody/simbody/blob/master/cmake/SampleCMakeLists.txt</a></p>
  
  <p>But in essence my <code>CMakeLists.txt</code> looks as such</p>
  
  <pre><code># CMakeLists.txt for making a Simbody-using executable.
  # This shows how to use the provided SimbodyConfig.cmake to locate a Simbody
  # installation on your machine so you can use it from your own code.
  
  cmake_minimum_required(VERSION 2.8)
  project(projectx)
  
  # Main source (and) header files
  set(my_source_files projectx.cpp)
  
  # This depends on SimbodyConfig.cmake being located somewhere predictable
  # on your machine. If you have installed it somewhere that CMake won't be
  # able to guess, you'll need to tell find_package where to look.
  find_package(Simbody REQUIRED)
  
  include_directories(${Simbody_INCLUDE_DIR})
  link_directories(${Simbody_LIB_DIR})
  
  add_executable(projectx ${my_source_files})
  target_link_libraries(projectx ${Simbody_LIBRARIES})
  </code></pre>
  
  <p>Any suggestions would be greatly welcomed. You'll note that the comment about placing <code>SimbodyConfig.cmake</code> predictable has been heeded, since it can be found in <code>/usr/local/</code> and again it works with the CMake GUI outside of CLion (version 3.3.0, CLion ships with Version 3.2.0).</p>