MantisBT - CMake
View Issue Details
0009940CMakeCMakepublic2009-11-21 06:542010-12-14 17:01
Soeren Textor 
Brad King 
normalfeaturealways
closedduplicate 
CMake-2-8 
 
0009940: support for COMPILE_FLAG_<CONFIG>
Serveral projects in my VS solution files need different CXX flags (not only for debug and release).

e.g.

sln
|
|- foo.lib: debug: /MTd, release /MT
|
|- foo.dll: debug: /MDd, release /MDd
|
|- foo.exe: debug: /MTs, release /MT

Right now in CMake different compiler flags can bee configured for different configurations by changing the global directory variable CXX_FLAGS_<CONFIG>.

A feature like as LINK_FLAGS_<CONFIG> is still outstanding
No tags attached.
duplicate of 0006493closed Stephen Kelly configuration dependent COMPILE_FLAGS for SET_TARGET_PROPERTIES 
Issue History
2009-11-21 06:54Soeren TextorNew Issue
2010-12-14 16:23David ColeAssigned To => Brad King
2010-12-14 16:23David ColeStatusnew => assigned
2010-12-14 16:24David ColeNote Added: 0023977
2010-12-14 16:58Brad KingNote Added: 0023981
2010-12-14 17:00Brad KingNote Added: 0023982
2010-12-14 17:00Brad KingRelationship addedduplicate of 0006493
2010-12-14 17:01Brad KingNote Added: 0023983
2010-12-14 17:01Brad KingStatusassigned => closed
2010-12-14 17:01Brad KingResolutionopen => duplicate

Notes
(0023977)
David Cole   
2010-12-14 16:24   
Brad, is this feature complete yet? (As in: per-config versions of at least compile flags and link flags?)
(0023981)
Brad King   
2010-12-14 16:58   
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LINK_FLAGS_CONFIG [^]
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:COMPILE_DEFINITIONS_CONFIG [^]
(0023982)
Brad King   
2010-12-14 17:00   
http://public.kitware.com/Bug/view.php?id=6493#c21590 [^]
(0023983)
Brad King   
2010-12-14 17:01   
Closing as duplicate of 0006493.