Skip to content

Missing variable CMAKE_OBJC_COMPILE_OBJECT #138

@glebm

Description

@glebm

iOS build of SDL2 master with this toolchain fails with the following error if enable_language(OBJC) is used:

CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_OBJC_COMPILE_OBJECT

It can be worked around by removing enable_language(OBJC) on iOS and skipping check_objc_source_compiles checks (libsdl-org/SDL#5453).

I'm not sure whether this is a bug in SDL2, ios-cmake, or cmake itself.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions