On Mon, Apr 13, 2009 at 10:11 PM, Andrew <[email protected]> wrote:

> thanks,
> Now I remember....
> So that means it is either/or? That, is you can have a Win32 set of
> projects or a Win64 set of projects. In an ideal world the 64-bit builds
> would just be a configuration.


Yes, it's either/or.  The big problem is that find_library() and other
commands in CMake were designed to find one thing or do one thing.  With
something like a simultaneous 32/64-bit build you would need two libraries
for every find_library() call, for example.  Also you would have to decide
what to do with compilation tests done during CMake configure time (do you
compile them once or twice, for which compiler mode do you pick, etc.).
There is also how to handle the case of one of your dependencies not having
a 64-bit library available.  Given the way CMake is written this would be
impossible to do without running the script twice.

find_library(FOO_LIBRARY foo)
if(FOO_LIBRARY)
    add_executable(foo_example foo_example.cc)
endif()

Since you're going to run it twice anyways you might as well let the
developer do it (is the CMake approach).

I regularly create several build trees / configurations per source tree.
MinGW, MSVC8, MSVC9, Linux GCC Debug, Linux GCC Release... You get used to
it. :)

-- 
Philip Lowman
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to