Skip to content

[bug] Should set ENABLE_STRICT_TRY_COMPILE TRUE by default #158

@halx99

Description

@halx99

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:

  1. https://github.com/axys1/axys/runs/8269974724?check_suite_focus=true

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions