[CMake] Set the common link flags for memprof tests

This was missed in ba007f20bb4acf95262f49ab527ce35c4a1f5a19 by mistake.

GitOrigin-RevId: fb89c4126904e4d82f235e492042c16c87cc8e3d
1 file changed