toolchainfile.cmake: only search the sysroot for CMake module
authorSamuel Martin <s.martin49@gmail.com>
Sun, 8 Mar 2015 09:47:22 +0000 (10:47 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 16 Mar 2015 21:16:45 +0000 (22:16 +0100)
commit252e57cf16670e566b04a2d132b3ad199d0767f9
tree3ebfe55c77a30d83b101b5a2ad790bfdaefcee74
parent155a474f993b207594b0c66f80910d280b609866
toolchainfile.cmake: only search the sysroot for CMake module

This change prevents CMake from searching outside the sysroot location
for CMake modules when cross-compiling.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/misc/toolchainfile.cmake.in