Will this work in Visual Studio? How does CMake know to place the appropriate include directories in the appropriate configuration?
I also was not able to find CMAKE_BUILD_STATUS in the 2.6 documentation. Where can I read about this variable? On Sun, Dec 21, 2008 at 1:49 PM, Andrey Sploshnov < ice.nightcraw...@gmail.com> wrote: > 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 <rcdai...@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@cmake.org >> http://www.cmake.org/mailman/listinfo/cmake >> > > > > -- > No fate, but what we make! > > _______________________________________________ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake