[CMake] INCLUDE_DIRECTORIES problem...

Bill Hoffman bill.hoffman at kitware.com
Sat Nov 15 22:31:38 EST 2008


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