]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - optee/ti-optee-test.git/commit
cmake: locate files WRT to project home directory
authorVolodymyr Babchuk <vlad.babchuk@gmail.com>
Mon, 21 Jan 2019 14:26:35 +0000 (16:26 +0200)
committerJérôme Forissier <jerome.forissier@linaro.org>
Tue, 22 Jan 2019 13:12:49 +0000 (14:12 +0100)
commit669058459e4a544be12f37dab103ee4c2b32e31d
tree51d99ea6c0a33db43045ebc0f80f426a67ae99bd
parentf6f68a226a9c622eff06c89405d47043acc5cbb5
cmake: locate files WRT to project home directory

Build system can't find file_to_c.py and certificate files, because
CMakeLists.txt have an assumption about those files locations. So,
when you try to use separate build directory, relative path in
CMakeLists.txt is not working as expected.

It is better to use CMAKE_CURRENT_SOURCE_DIR instead of assuming that
mentioned files can be reached from the build directory.

Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
CMakeLists.txt
host/xtest/CMakeLists.txt