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

Denis Scherbakov denis_scherbakov at yahoo.com
Thu Mar 26 07:52:48 EDT 2009


You should setup a separate build directory for each platform and run CMake there with configuration options you want.

Denis


> I would like to build the same source tree for different
> platforms. A
> platform means various embedded OSes, WIN32, etc.
> Compilation for each
> platform may differ by includes and libs used as well as
> some
> toolchain and compile options changes. There are some minor
> platform
> changes in the code handled by conditional compilation.



      


More information about the CMake mailing list