4.6, 4.7
Afaik: if you depend on APIs that require a minimal Godot version, say 4.5, you would use the 4.5 branch of godot-cpp in your GDExtension project.
4.5
But I saw no 4.6 nor 4.7 branch; how am I supposed to version control godot-cpp if I’m targeting those later versions?
Thanks.
godot-cpp uses a new versioning system unrelated to Godot’s version
Versioning Starting with version 10.x, godot-cpp is versioned independently from Godot. Using the api_version parameter (see below), godot-cpp v10 can target Godot 4.3 or later. scons api_version=4.3
Starting with version 10.x, godot-cpp is versioned independently from Godot. Using the api_version parameter (see below), godot-cpp v10 can target Godot 4.3 or later.
scons api_version=4.3
— from godot-cpp Github
Thanks!
Following your information, found its CMake counterpart: GODOTCPP_API_VERSION.
GODOTCPP_API_VERSION