mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
Add a check that a simple source file can compile as C++17 that uses
some of the features we need. Do this only when hosted by CMake 3.8
or above because those versions are aware of C++17.
Check for unordered_map as we do in bootstrap since commit 375eca7881
(bootstrap: Check support for unordered_map from compiler mode,
2017-11-30). Also maintain the existing C++14 cstdio check.
8 lines
71 B
C++
8 lines
71 B
C++
#include <cstdio>
|
|
#include <unordered_map>
|
|
|
|
int main()
|
|
{
|
|
return 0;
|
|
}
|