Update CMake project variables in modules.