makefile - CMake: specifying build toolchain -
very new cmake, , far i'm finding extremely helpful. have set of custom libraries build multiple platforms using cross-compilation. toolchains installed, , can hand-create makefile
s need so, able make use of cmake.
is there way tell cmake
toolchain use, either @ command line or in cmakelists.txt
file?
have here: basically, define "toolchain file" sets things system name, paths compilers , on. call cmake
so:
cmake /path/to/src -dcmake_toolchain_file=/path/to/toolchain/foo-bar-baz.cmake
Comments
Post a Comment