[cmake-developers] need help for advanced option while additional build type
Hi, I need your help for cMake on windows platforms. Along with default configuration (Release) I want to add an additional build type in my configuration (Release_Win2008). I am able to do it using following code. SET (CMAKE_C_FLAGS_RELEASE_WIN2008 ) SET(CMAKE_BUILD_TYPES Release Release_win2008) SET (CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPES} CACHE STRING FORCE) The problem is that include directories for both the configurations are different. In case of Release build type i need to have following include directories INCLUDE_DIRECTORIES( Z:/src/rel Z:/bin/NT/openssl/x86/include ) In case of Release_win2008 i need to have following include directories INCLUDE_DIRECTORIES( Z:/src/rel_w2k8 Z:/bin/NT/openssl/x86/include Z:/bin/NT/openssl_w2k8 ) Could you please help me how do i achieve it so that at the end i can have a single cMakeLists configuration file which generates one vcProj which supports both the configurations (mentioned above) with the relevant include directories. Thanks Regards, AJ ___ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] Generating information for C++ tools in cmake (patch)
On Mon, Jan 17, 2011 at 8:52 AM, Brad King brad.k...@kitware.com wrote: On 01/14/2011 06:19 PM, Manuel Klimek wrote: Attached are 2 patches for caching the definesflags and introducing the options. Thanks. I'll look into testing next, any hints for what to look out for would be appreciated ;) I think the test needs to build one of CMake's current tests, such as COnly, with the new export option. Then it should parse the json file and try re-running all the recorded command lines. The easiest way to do this is probably to create a new executable that builds as part of the main CMake build process when the BUILD_TESTING option is on. It can link to CMakeLib and use helpers like cmSystemTools::RunSingleCommand to take care of re-running the children. You'll have to write a tiny json parser of course. Since this is a big integration style test, is it also possible to integrate a python test? (the whole test would fit into a few lines of python then) Cheers, /Manuel ___ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] Generating information for C++ tools in cmake (patch)
On Tue, Jan 18, 2011 at 1:53 PM, Brad King brad.k...@kitware.com wrote: On 1/18/2011 1:50 PM, Manuel Klimek wrote: Since this is a big integration style test, is it also possible to integrate a python test? (the whole test would fit into a few lines of python then) We'd prefer not to depend on python, but certainly a prototype in python would be a good start. -Brad ___ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers Brad's being polite when he says we'd prefer not to depend on python. CMake itself *will not* depend on python. And for any test that is expected to be run on all of our dashboard clients before it's accepted into CMake 'master', such a test cannot depend on python either. David ___ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers