[CMake] INCLUDE_DIRECTORIES and relative path
jago jagoc
jagovic at gmail.com
Mon Nov 2 04:59:32 EST 2009
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 } )
...
When i generate the solution by cmake in visual studio2005 i find in
C++ properties the absolute path to the project plus
${MYINCLUDE_DIR },
i would like to add only a relative path( e.x. ../3rdParty/include) or
a variable that i can set after the project generation(e.x in the c++
properties i woud like to find $(Myincludedir)).
Thanks you,
best regards
Jagovic
More information about the CMake
mailing list