I want to rename certain executables in CMakeLists.txt but also want symbolic links from the older names to new files for backward compatibility. How can this b
CMakeLists.txt
I've added the check to @ulidtko's approach, so symlink doesn't overridden on every rebuild unconditionally:
install(CODE "if (NOT EXISTS ${link}) execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \ ${target} \ ${link}) endif()" )