CMake: fix for CMAKE_CURRENT_LIST_DIR in functions
CMAKE_CURRENT_LIST_DIR behaves differently in functions. We store it in the CMakeLists itself, so anyone
calling a function would get the actual list dir where the scripts are.

To illustrate: if I call a function from src/CMakelists.txt, function located in src/scripts, `CMAKE_CURRENT_LIST_DIR` in the function would point
to the src/ folder but not to src/scripts.
ls
1 parent ed609f5 commit b6a90c4ae14f4486f8516a2f6cf9e54e80a43b00
@Martin Kojtal Martin Kojtal authored on 12 Apr 2021
Showing 3 changed files
View
platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/scripts/mbed_set_post_build_tfm.cmake
View
targets/TARGET_Cypress/scripts/mbed_set_post_build_cypress.cmake
View
targets/TARGET_NXP/scripts/mbed_set_post_build_nxp.cmake