[CMake] setting different include_directories, link_directories, etc for different targets

Denis Scherbakov denis_scherbakov at yahoo.com
Thu Mar 26 08:33:19 EDT 2009


Jakub,

I don't really understand, how it is possible, to share the same build directory with WIN32 object files and say Sparc-Solaris?

Even, if you only talk about windows variations, how will you distinguish, file WindowUtilApp.obj was compiled for WinXP or WinCE?

At build time - it is NOT possible to share build directories. At install time - you can specify common installation directory for all build trees, say C:\Project\BIN and perform installation of executables there, but you'll have to make sure that executable names still differ. Otherwise they will overwrite each other.

Denis


> Yes, this is one of the possibilities which does not solve
> the problem
> very nice ... or is it possible to have the final generated
> projects
> in one solution, with one "BUILD_ALL" and
> "RUN_TESTS" and all the
> things around?



      


More information about the CMake mailing list