Works with cmake 2.6.