[CMake] set_source_files_properties and configurations revisited

Slavoj Pisek spisek at kerio.com
Fri Aug 8 04:58:13 EDT 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3665 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080808/a0a8a0d2/attachment.bin>


More information about the CMake mailing list