Automatically rebuild external cmake project after edit_cache
- by arunkd13
I have a main cmake project which has a PROJECT_INCLUDE_PATH which is a cached variable. I pass this variable as a CMAKE_ARGS parameter to an external project that I add using ExternalProject_Add().
The problem is, when I change the value of the PROJECT_INCLUDE_PATH using 'make edit_cache' the external project is not reconfigured.
Is there any way make the external project to be reconfigured and built automatically when the cached variable is changed in the main project?