[CMake] Add configuration support to include_directories()
Andrey Sploshnov
ice.nightcrawler at gmail.com
Sun Dec 21 14:49:12 EST 2008
May be you need something like this?
include_directories (C:\includes\foo\all)
if (CMAKE_BUILD_STATUS STREQUAL "Debug")
include_directories (C:\includes\foo\debug)
elseif (CMAKE_BUILD_STATUS STREQUAL "Release")
include_directories (C:\includes\foo\release)
endif (CMAKE_BUILD_STATUS STREQUAL "Debug")
On Thu, Dec 18, 2008 at 11:13 PM, Robert Dailey <rcdailey at gmail.com> wrote:
> Would it be possible to add configuration support to include_directories()?
> For example, some include directories I only want to show up in debug, some
> in release, and some in all configurations. I imagine this would look a lot
> like target_link_libraries():
>
> include_directories(
> C:\includes\foo\all # This include path applies to all configurations
> debug C:\includes\foo\debug # This include path only shows up in debug
> configurations
> release C:\includes\foo\release # This include path only shows up in
> release configurations
> )
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
--
No fate, but what we make!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081221/115950ac/attachment.htm>
More information about the CMake
mailing list