-
-
Notifications
You must be signed in to change notification settings - Fork 471
Open
Labels
Description
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
- What version of CMake did you run?
- Your faulty CMakeLists.txt here:
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