[CMake] Add configuration support to include_directories()

Robert Dailey rcdailey at gmail.com
Mon Dec 22 23:27:00 EST 2008


On Mon, Dec 22, 2008 at 9:23 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

>
>     Investigate CMAKE_CFG_INTDIR.
>>
>>
>> I believe for Visual Studio output, this will be $(OutDir), right? If this
>> is the case, this is a visual studio environment variable that will have no
>> meaning when used in CMake scripts.
>>
>>
> It is . when not in VS, and $(OutDir) when it is.  So, you can say
> /foo/bar/bin/${CMAKE_CFG_INTDIR}/runit.
>
> It will be /foo/bar/bin/./runit with makefiles.
> It will be /foo/bar/bin/$(OutDir)/runit with VS projects.


Keep in mind this is for include directories, which will not work with
visual studio environment variables. I need to statically tell CMake which
include directories go along with what configuration. I don't believe this
can be done at the moment, at least with visual studio generation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081222/f695c1a8/attachment.htm>


More information about the CMake mailing list