Hi Xavier, 

I have a similar problem. And I tried to solve it by adding option
COMPILER_FLAGS_<CONFIG> to CMake's source code.

There is my patch available at
http://public.kitware.com/Bug/view.php?id=6493.

I hope you find it useful and the patch will be added to CMake 2.7.

Best regards 

Slavek


> Hello,

> I'm using CMake 2.6 and MS Visual Studio 2005.
 
> I need to set different compile flags to my source files depending on
> the configuration (debug or release). 
> I've checked the mailing list and I found a thread talking about it
> (http://www.cmake.org/pipermail/cmake/2006-December/012148.html). The
> solution proposed there is to use LIST(APPEND CMAKE_CXX_FLAGS_RELEASE
> /Yu seqlibcommon.h) but that only helps when you want to put this flag
> to all of the source files, which is not my case. 
> Instead, what I need is something like
> SET_SOURCE_FILES_PROPERTIES_RELEASE, but that doesn't exist. Any
> suggestion?
 
> Xavier

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to