[cmake-developers] need help for advanced option while additional build type

ajay bansal ajay_ban123 at rediffmail.com
Tue Jan 18 12:19:56 EST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110118/b94a15a2/attachment.html>


More information about the cmake-developers mailing list