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. |
---|
|
platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/scripts/mbed_set_post_build_tfm.cmake |
---|
targets/TARGET_Cypress/scripts/mbed_set_post_build_cypress.cmake |
---|
targets/TARGET_NXP/scripts/mbed_set_post_build_nxp.cmake |
---|