author | Volodymyr Babchuk <vlad.babchuk@gmail.com> | |
Mon, 21 Jan 2019 14:26:35 +0000 (16:26 +0200) | ||
committer | Jérôme Forissier <jerome.forissier@linaro.org> | |
Tue, 22 Jan 2019 13:12:49 +0000 (14:12 +0100) | ||
commit | 669058459e4a544be12f37dab103ee4c2b32e31d | |
tree | 51d99ea6c0a33db43045ebc0f80f426a67ae99bd | tree | snapshot (tar.xz tar.gz zip) |
parent | f6f68a226a9c622eff06c89405d47043acc5cbb5 | commit | diff |
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>
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 | diff | blob | history | |
host/xtest/CMakeLists.txt | diff | blob | history |