Both ways work on CMake 2.x, but only this way works on 3.1