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
Can not build on ARM64 Darwin #2858
Comments
I also discovered this problem when attempting to update mosquitto in macports: https://trac.macports.org/ticket/67874 At first, I was able to add diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8913c2d..145f6255 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,7 @@ if (WIN32)
endif (WIN32)
if(APPLE)
- set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -undefined dynamic_lookup")
+ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -undefined dynamic_lookup")
endif(APPLE)
include(GNUInstallDirs) |
The proposed solution worked for me. Thank you! As I'm mentioning in #2744 (comment), I was having a similar problem while trying to build |
This issue, which was deemed resolved occurs on current master.
cmake invocation is
cmake .. -DOPENSSL_ROOT_DIR=/opt/homebrew/Cellar/[email protected]/1.1.1u/
The text was updated successfully, but these errors were encountered: