Sunday, April 3, 2022

[SOLVED] How to set the executable name in CMake?

Issue

I tried using set(EXECUTABLE_OUTPUT_PATH "..."), but that only specifies the directory where the executable is created. I also need to change the name of the executable itself. How can I do this?


Solution

Have you tried using SET_TARGET_PROPERTIES and using the OUTPUT_NAME property?



Answered By - Crazy
Answer Checked By - Clifford M. (WPSolving Volunteer)