[CMake] Configuring different output file names for debug and
release
Alexander Neundorf
a.neundorf-work at gmx.net
Fri May 11 08:25:34 EDT 2007
On Friday 11 May 2007 07:55, Angel Riesgo wrote:
> Hi,
...
> And this is where we are having problems. My first question is how I can
> specify different output names for different configurations, so that the
> debug output name has a "D" appended to the name.
You can use SET_TARGET_PROPERTIES(mytarget PROPERTIES DEBUG_POSTFIX "D") to do
this, see the man page for details.
> My second question is how I can prevent CMake from adding "debug" and
> "release" intermediate directories to the output path. In the
> CMakeLists.txt file, I am setting LIBRARY_OUTPUT_PATH to a path ending
> in lib/win/, but the Visual C++ project always has an extra $(OutDir)
> appended to that. This means that the actual output directory ends up
> being lib/win/debug or lib/win/release, which is not what we want.
I think you can't change this.
Bye
Alex
More information about the CMake
mailing list