mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Commit a72e241200 (Check*: Restore more toleration of `;-W...` in
CMAKE_REQUIRED_FLAGS, 2026-07-21) updated the Check* modules to share
required-flag handling without adding coverage for those paths.
Exercise each probe with required definitions followed by a warning
option.
Without the compatibility handling, CMake rejects the warning option.
Without the required definitions, all seven checks fail to find their
header, functions, prototype, or type.
Issue: #28001
6 lines
119 B
C
6 lines
119 B
C
#ifndef CHECK_REQUIRED_FLAGS
|
|
# error "CMAKE_REQUIRED_FLAGS was not honored"
|
|
#endif
|
|
|
|
int required_flag_prototype(int);
|