[CMake] To avoid target_link_libraries magic

Hendrik Sattler post at hendrik-sattler.de
Tue Mar 22 08:06:05 EDT 2011


Zitat von Valeriy Bykov <valery.bickov at gmail.com>:
> So I'll try to describe all my problems:
> I want to build all the project statically using certain version of glibc,
> gcc and all other libs I need. They are situated in the folder "builddeps"
> which I can simply checkout on any host and pass it's path to CMake.
>
> I set compile option -nostdinc and specify all system and user include
> directories explicitly in toolchain file. By this I can be sure that
> only headers are used which I want, and no one from host system where
> may be its own gcc and glibc too.

You want the --sysroot gcc option.

HS




More information about the CMake mailing list