DKSDK_GOLDEN_SOURCE_CODE

A flag you can check to decide whether to update any source code file.

DkSDK respects this flag in all of its commands.

When ON, both you and DkSDK should skip any configure_file(), file(WRITE), file(CONFIGURE OUTPUT), file(GENERATE OUTPUT), add_custom_command() or add_custom_target() that modifies a file in the CMAKE_SOURCE_DIR tree.

That will cause your build to only use the source code that was checked out.

OFF (the default) is typically for development where you have the abiility to see the source code file changes (ex. git status) and are able to do something about it.

ON should always be used in your CI.

Something needs to ensure the source code is what is delivered to your customers! Turn it ON during CI testing or when your CI is producing binaries for distribution to your customers/fleet.