[CMake] msvc postfix conventions
Jan Woetzel
jw at mip.informatik.uni-kiel.de
Wed Aug 2 02:11:59 EDT 2006
Brandon J. Van Every wrote:
> I'm trying to decide reasonable defaults for the various _POSTFIX
> variables under msvc. My guesses:
> DEBUG_POSTFIX "d"
> For all I know there may not be many conventions, as keeping debug and
> release builds in different directories is a common practice.
Brandon,
keep the disadvantage of postfixes in mind:
- using multiple configurations inside one build tree (with MSVS IDE) is
complicated with postfix
- works only for two configurations, typically Debug and Release because:
- you have to use TARGET_LINK_LIBRARIES command with prefix flags
"optimized" and "debug"
I see only the advantage of one single "lib" dir.
We decided to go with the "IntDir" subdirectories and it works quite
well, here.
The libs are put into i.e. lib/debug, lib/release ... lib/fooCfg etc.
Jan.
--
Dipl.-Ing. Jan Woetzel
--------------------------------------------------
University of Kiel
Institute of Computer Science and Applied Mathematics
Hermann-Rodewald-Str. 3 [room 310]
24098 Kiel/Germany
--------------------------------------------------
Phone +49-431-880-4477
Fax +49-431-880-4054
Mob. +49-179-2937346
--------------------------------------------------
Url www.mip.informatik.uni-kiel.de/~jw
Email jw at mip.informatik.uni-kiel.de
More information about the CMake
mailing list