-
Notifications
You must be signed in to change notification settings - Fork 306
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 cmake error on external misc library #487
base: dev
Are you sure you want to change the base?
Conversation
For Linux builds, if strlcpt and strlcat are already provided, cmake is given an empty list of sources to build for the "misc" library. Newer versions of cmake throw an error for this. In this case, we should just avoid building the library. Failure pattern: CMake Error at external/misc/CMakeLists.txt:35 (add_library): No SOURCES given to target: misc CMake Generate step failed. Build files cannot be regenerated correctly. Fixes wb2osz#319
Temporarily add patch: wb2osz/direwolf#487
Temporarily add patch: wb2osz/direwolf#487
Your change fixes the build for Alpine Linux but breaks Ubuntu and Raspberry Pi. |
Looking at the Ubuntu failure, I think the |
Actually the whole |
I think I have something that fixes the build on Alpine without breaking the others. |
Sorry for the delay. Looks like this approach works for me! (Clear Linux) |
For Linux builds, if strlcpt and strlcat are already provided, cmake is given an empty list of sources to build for the "misc" library. Newer versions of cmake throw an error for this. In this case, we should just avoid building the library.
Failure pattern:
CMake Error at external/misc/CMakeLists.txt:35 (add_library):
No SOURCES given to target: misc
CMake Generate step failed. Build files cannot be regenerated correctly.
Fixes #319