Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Andrey Sploshnov
>From documentation to CMake 2.6.x: "Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK." What are you actually trying to do? If you want to perform some actions before actually build the target, use of add

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Andrey Sploshnov
riate 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 somethin

Re: [CMake] Add configuration support to include_directories()

2008-12-21 Thread Andrey Sploshnov
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 STREQU