[CMake] INCLUDE_DIRECTORIES problem...

BRM bm_witness at yahoo.com
Sun Nov 16 18:44:52 EST 2008


Thanks for the tip - it showed that it indeed working; and pointed to a portability problem in the code -

Using VC++ <folder\file> is allowed; however, with g++ under Linux it has to be <folder/file>.

The g++ notation should work with VC++ too.

Thanks all for the help in finding the issue.

Ben




----- Original Message ----
From: Bill Hoffman <bill.hoffman at kitware.com>
To: BRM <bm_witness at yahoo.com>
Cc: Christopher Harvey <chris at basementcode.com>; CMake <cmake at cmake.org>
Sent: Sunday, November 16, 2008 3:31:38 AM
Subject: Re: [CMake] INCLUDE_DIRECTORIES problem...

BRM wrote:
> ${project_SOURCE_DIR} is pointing to the root as I thought it would be.
> 
> 
> Another suggestion was to use ${PROJECT_SOURCE_DIR} however, that is an empty string.
> 
> I have also tried setting a new variable to ${project_SOURCE_DIR}/include and using that, however the same result.
> 
> I forgot to mention in the earlier e-mail - as I'm running this on Gentoo (which has used it for several projects), I am using CMake 2.4 - latest from Portage.
> 

Do a make VERBOSE=1 and check the actual compile line. It maybe a previous -I that is eating this -I.

-Bill


More information about the CMake mailing list