We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4099 - CMake build process produces output that seems to confuse Xcode
Summary: CMake build process produces output that seems to confuse Xcode
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.6
Hardware: x86_64 macOS 10.13
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-01 00:46 UTC by Tom Seddon
Modified: 2018-03-01 00:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Seddon 2018-03-01 00:46:19 UTC
The CMake build process produces the following output:

    message(STATUS "${LT_VERSION} :: ${LT_AGE} :: ${LT_REVISION} :: ${LT_CURRENT} :: ${LT_RELEASE}")

For some reason, don't ask me what, Xcode seems to interpret this as an error. This is a bit annoying when rebuilding the project after changing a CMakeLists.txt file. (And it doesn't have to be a change to the SDL one - any change to any CMakeLists.txt in any of the consuming projects seems to trigger this.)

I've changed my copy to produce the following output, which Xcode appears to treat as ordinary output:

    message(STATUS "LT_VERSION = ${LT_VERSION}; LT_AGE = ${LT_AGE}; LT_REVISION = ${LT_REVISION}; LT_CURRENT = ${LT_CURRENT}; LT_RELEASE = ${LT_RELEASE}")

This still isn't quite perfect. After changing my project's CMakeLists.txt, I do still usually have to build multiple times. (I don't think cmake's Xcode support is actually all that great, and of course Xcode is terrible to start with.) But at least this way I don't get a build error from SDL... just an "build cancelled" message, which is obviously bogus, since I didn't cancel the build.

--Tom