-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Fix link Cocoa framework when building TORQUE_DYNAMIC_LIBRARY
on macOS
#1262
base: development
Are you sure you want to change the base?
Fix link Cocoa framework when building TORQUE_DYNAMIC_LIBRARY
on macOS
#1262
Conversation
this should already be linking =/ |
Oooh, I hadn't seen this post build file. It seem |
a57c36c
to
735fe41
Compare
All right, I can confirm that using |
So I gave this a test, and in both cases of archiving vs regular build, it doesn't seem to behave as expected. Is there any other expected flags involved that need flipping, or was it jsut the DYNAMIC_LIBRARY one that should've been suficient? |
Hey @Areloch. The dynamic library is built as "Engine/source/libTorqueEngine.dylib" inside the build directory. When you ask CMake to build it, it will actually link your executable to this dylib, so that your app will be a lot smaller and depend on the "libTorqueEngine.dylib" being installed in the correct place. I didn't test libTorqueEngine very much, was using it to build the |
This fixes the dynamic library build on macOS by adding
-framework Cocoa
to the link flags, so that native Objective-C symbols can be linked correctly.