title: CMake missing environment variables errors
body: <p>I'm attempting to use cmake on Mac OSX i've installed both a binary version and then also from source. However i continue to receive the following errors when attempting to create a Makefile.</p>
  
  <p>cpc1-dumb4-2-0-cust166:build bcrowhurst$ cmake .
  CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.</p>
  
  <p>Missing variable is:</p>
  
  <p>CMAKE_On_COMPILER_ENV_VAR</p>
  
  <p>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.</p>
  
  <p>Missing variable is:</p>
  
  <p>CMAKE_On_COMPILER</p>
  
  <pre><code>CMake Error: Could not find cmake module file:/Users/bcrowhurst/NetBeansProjects/appon/build/CMakeFiles/CMakeOnCompiler.cmake
  
  CMake Error: Could not find cmake module file:CMakeOnInformation.cmake
  
  CMake Error: CMAKE_On_COMPILER not set, after EnableLanguage
  
  -- Boost version: 1.43.0
  
  -- Found the following Boost libraries:
  
  --   system
  
  -- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>My CMakeLists.txt is as follows:</p>
  
  <pre><code>cmake_minimum_required( VERSION 2.6 )
  
  project( Application On )
  
  find_package( Boost COMPONENTS system REQUIRED )
  
  link_directories( ${Boost_LIBRARY_DIRS} )
  
  if(Boost_FOUND)
      include_directories( ${Boost_INCLUDE_DIRS} )
  
      add_library( object ../source/object.cpp ../source/object.h )   
      target_link_libraries( object ${Boost_SYSTEM_LIBRARY} )
  
  endif()
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks.</p>