Automatically rebuild external cmake project after edit_cache

Posted by arunkd13 on Stack Overflow See other posts from Stack Overflow or by arunkd13
Published on 2012-06-04T13:17:00Z Indexed on 2012/06/04 22:40 UTC
Read the original article Hit count: 125

Filed under:

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?

© Stack Overflow or respective owner

Related posts about cmake