[CMake] INCLUDE_DIRECTORIES and relative path

Bill Hoffman bill.hoffman at kitware.com
Mon Nov 2 07:45:11 EST 2009


jago jagoc wrote:
> Hi,
> I am some problem using INCLUDE_DIRECTORIES macro, i am using Cmake
> 2.6 - path 0 and Visual studio 2005.
> In my Cmakelist.txt
> 
> ...
> SET(MYINCLUDE_DIR "../3rdParty/include" CACHE STRING "My include dir
> You may add additional search paths here. Use ; to separate multiple
> paths.")
> 
> 
> INCLUDE_DIRECTORIES( ${MYINCLUDE_DIR } )
> ...

You need to remove the extra space...

INCLUDE_DIRECTORIES( ${MYINCLUDE_DIR} )

-Bill


More information about the CMake mailing list