-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
[bug] Should set ENABLE_STRICT_TRY_COMPILE TRUE by default #158
Comments
your build log doesn't contain exact linker command, you should build without Also, in configure step there's
|
Yes, If enable strict try compile, will be -- Performing Test HAVE_LIBATOMIC - Fail That's correct for ios don't needs libatomic. |
this really depends on a concrete case. like I wrote in your PR, just pass |
Yes, your solution can solve the this issue, but I don't known why ios-cmake set |
Do your CMakeLists.txt perhaps set |
Describe the bug
Sets ENABLE_STRICT_TRY_COMPILE
OFF
default, will lead cmake generate incorrect native project for dynamic libraries.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Generate native project correct when build dynamic library on iOS.
Environment
git clone https://github.com/kcat/openal-soft cd openal-soft cmake -B build -GXcode -DCMAKE_TOOLCHAIN_FILE=ios.cmake.toolchain -DPLATFORM=OS64 cmake --build build --target OpenAL # will error with: ld: library not found for -latomic, because the openal-soft find non-exists library `libatomic` with this toolchain file
The text was updated successfully, but these errors were encountered: