Open
Description
Godot version
Master of godot-cpp
godot-cpp version
Master of godot-cpp
System information
macOS 14.5
Issue description
I'm not able to build using CMake on macOS:
cmake .
cmake --build .
Gives this error:
clang: error: unsupported option '-static-libgcc'
I believe this is caused by the current CMakeLists.txt file assuming that anything that isn't MSVC is GCC:
target_link_options(${PROJECT_NAME} PRIVATE
$<$<NOT:${compiler_is_msvc}>:
-static-libgcc
-static-libstdc++
-Wl,-R,'$$ORIGIN'
>
)
To fix this, in the CMakeLists.txt file, we should:
- Add support for Clang.
- Add support for macOS.
- Add a CI job to build and test CMake on macOS.
Steps to reproduce
Try to build with CMake on macOS.
Minimal reproduction project
Master branch of godot-cpp.