Exclude auto-generated source files from the build?

Hello,

during the project build I have files generated by an external python script, that script is used on both Windows and macOS. I need to exclude a certain file from the Xcode build.

Is there a way to do that via cmake or my only option would basically be editing the script generating the file?

CMake only build the files you’ve listed as sources. In fact one has to go through a few hoops to get generated sources to be included.
So unless you did something non-standard, you shouldn’t have the generated sources being built.

thanks for that info.

I found a proper way to edit them out though.