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

Bill Hoffman bill.hoffman at kitware.com
Wed Dec 3 14:55:45 EST 2008


Robert Dailey wrote:
> On Wed, Dec 3, 2008 at 1:18 PM, Bill Hoffman <bill.hoffman at kitware.com 
> <mailto:bill.hoffman at kitware.com>> wrote:
> 
>     Maybe it finds the wrong utility.cmake file?
> 
>     Try adding some message("here") type stuff to make sure the correct
>     files are being loaded.  With cmake 2.6.2 you can run cmake --trace
>     to see all the files and commands as they are run by cmake.  Should
>     help you find the problem pretty quick.
> 
> 
> I did as you suggested and added a message() call inside of 
> utility.cmake and I see it printed when I run CMake. So this means I'm 
> loading the correct file then?

Did you try the --trace?  Maybe a spelling error?   Please post a 
complete small example that shows the problem if none of that helps.

-Bill


More information about the CMake mailing list