How do you concatenate string in cmake April 12, 2023 by Tarik "${src}.out" should work fine, so you can write set(NAME "${src}.out") and use ${NAME} wherever you need to.