How to configure CMAKE to detect source code changes?
Posted: Wed Jun 29, 2022 9:13 am
Hi,
I have a project which, in terms of directory structure looks like this:
- main project (git repo)
- subfolder: esp-idf (created with the help of `ci_esp32_setup_helper v4.4.1`)
- submodule: micropython v1.18
in micropython/ports/esp32/boards/manifest.py I have the following contents:
so basically: I moved the manifest to a different location so that new developers, coming into our project don't have to search for the manifest in specific ports. It's pretty much a convenience thing... However, I run into the follow issue:
When I change a line in my source code, (located in the top level directory) calling `make all` does not pick up the changes.
It seems like CMAKE is not aware of the fact that something has changed.
How do I make sure CMAKE checks for my src directory as well?
I figured it has something to do with `micropython/ports/esp32/CMakeLists.txt` but I'm not sure as this is my first time using (C)make
regards,
Chris
I have a project which, in terms of directory structure looks like this:
- main project (git repo)
- subfolder: esp-idf (created with the help of `ci_esp32_setup_helper v4.4.1`)
- submodule: micropython v1.18
in micropython/ports/esp32/boards/manifest.py I have the following contents:
Code: Select all
# manifest and modules folder moved to root of parent project (fridge-smart-controller-2) because its easier for newcomers to see all code that will be frozen.
include("$(MPY_DIR)/../application/manifest.py")
When I change a line in my source code, (located in the top level directory) calling `make all` does not pick up the changes.
It seems like CMAKE is not aware of the fact that something has changed.
How do I make sure CMAKE checks for my src directory as well?
I figured it has something to do with `micropython/ports/esp32/CMakeLists.txt` but I'm not sure as this is my first time using (C)make
regards,
Chris