[CMake] Add configuration support to include_directories()

Robert Dailey rcdailey at gmail.com
Mon Dec 22 20:30:37 EST 2008


On Mon, Dec 22, 2008 at 5:58 PM, Tyler Roscoe <tyler at cryptio.net> wrote:

> On Mon, Dec 22, 2008 at 05:55:10PM -0600, Robert Dailey wrote:
> > I apologize, but I don't see how this could possibly work for visual
> studio
> > output. It seems like you'd have 1 set of visual studio projects for
> debug
> > and one set for release. You don't know if the build type is debug or
> > release in CMake because the configuration is "dynamically chosen", which
> > basically means the user chooses the configuration *after* the CMake
> targets
> > have been generated.
>
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081222/c229cdaa/attachment.htm>


More information about the CMake mailing list