I think you need both lines in the CMake file (from comparison with other CMake files), otherwise ln fails to build.