execute_process only run once

It runs each time CMake processes the CMakeLists.txt, so each time you (or your IDE) issue a cmake command or if the generated rules trigger a re-configure. It does not run by itself.