mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
50e90e2828
Some projects pass a raw `-std=` flag to the compiler in the `try_compile` project. If they do not set CMP0128 to NEW, we should not append a `-std=` flag where we did not before the policy was added. Fixes: #24063
8 lines
165 B
CMake
8 lines
165 B
CMake
|
|
set(check_cxx_std "
|
|
#if __cplusplus <= 199711L || __cplusplus > 201103L
|
|
# error Compiler is incorrectly not in C++11 mode.
|
|
#endif
|
|
")
|
|
include(CMP0128-common.cmake)
|