So I'm not completely sure what you're after. We specify that things
are placed in lib/ and bin/ (in the binary directory I believe). I
think CMake negotiates with Visual Studio to place the object files
where they are. (It looks like you're not doing out-of-source builds
by the way.)

I think CMake lets Visual Studio do its thing and is mostly
responsible for requesting that Debug and Release folders are created
under lib/ and bin/. I believe the reason for this is that it is not
necessarily the case that debug and release products have unique file
names. Furthermore, there are other build configurations that can
exist (e.g. RelWithDebug, custom) which further complicates this
matter.

You might get a more informed answer from the CMake mailing list about this.

-Eric




Hi,

This is my results with the changes committed a couple of hours ago.
I'm running Windows XP with VS 2005 so I use the cmake gui with these
settings.

Source: C:\dev\Libraries\OpenSceneGraph
Binaries: C:\dev\Libraries\OpenSceneGraph
OPENTHREADS_INCLUDE_DIR C:\dev\Libraries\OpenThreads\include
OPENTHREADS_LIBRARY
C:\dev\Libraries\OpenThreads\lib\win32\OpenThreadsWin32.lib
OPENTHREADS_LIBRARY_DEBUG
C:\dev\Libraries\OpenThreads\lib\win32\OpenThreadsWin32d.lib
CMAKE_INSTALL_PREFIX ./

My hope was to find the results of a build in the same locations as
before cmake was introduced (without running the install project).
This is what I found when building the osg core project.

C:\dev\Libraries\OpenSceneGraph\lib\debug
osgd.dll osgd.exp osgd.lib osgd.pdb

C:\dev\Libraries\OpenSceneGraph\src\osg\osg.dir\Debug
AlphaFunc.obj AnimationPath.obj ...

So the dll and pdb files end up under the lib directory and the obj
files end up under the src directory.  The debug and release binaries
are no longer in the same directory.


Regards,
Brede


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to