[CMake] Can't get include() to work!

Robert Dailey rcdailey at gmail.com
Mon Dec 1 17:12:37 EST 2008


For some reason I cannot get include() to work.

In a CMakeLists.txt of mine (not the root CMakeLists.txt) I call the
following:

cmake_minimum_required( VERSION 2.6 )
include( includes.cmake )
project( vfx )

And I have a file called includes.cmake in the same directory containing the
CMakeLists.txt above. When I run *cmake -G "Visual Studio 9 2008"*, I get
the following output:

C:\IT\work\jewett>cmake -G "Visual Studio 9 2008"
CMake Error at vfx/CMakeLists.txt:2 (include):
  include could not find load file:

    includes.cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081201/4b064e6d/attachment.htm>


More information about the CMake mailing list