-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building in OSX Mojave. #442
Comments
CMake doesn't seem to support Xcode 10 under specific circumstances. |
Oh, thanks! I'd searched but didn't find that one. I'm fine closing this one as a duplicate. Thanks for the quick response! 👍 |
@NfNitLoop If you only want to build libui locally, then this change might make CMake work. diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7193fbb..39f8fd7f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,7 +16,7 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
# TODO figure out what other variables must be set with CACHE
# TODO figure out if FORCE is needed here
# TODO figure out whether STRING "" is best or if something else is better; also what FORCE does because I forget and later I say it's needed
-set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8" CACHE STRING "" FORCE)
+set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "" FORCE)
# we want to disable incremental linking
# see also: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been trying to use libui (via libui-rs) but I'm getting build errors. So I tried just downloading the C version of the library and building that.
steps:
Output:
I installed cmake from Homebrew, and I'm using XCode 10.1. The README.md says that the requirements for macOS are "nothing specific, as long as you can build Cocoa programs." Is XCode not enough for that?
The text was updated successfully, but these errors were encountered: