- check_cxx_source_compiles("using Foo = int; int main(){}" _SIMGRID_CXX11_ENABLED)
- if (NOT _SIMGRID_CXX11_ENABLED)
- message(WARNING "C++11 is required to use SimGrid. Enable it with e.g. -std=c++11")
+ check_cxx_source_compiles("
+#if __cplusplus < 201402L
+#error
+#else
+int main(){}
+#endif
+" _SIMGRID_CXX14_ENABLED)
+ if (NOT _SIMGRID_CXX14_ENABLED)
+ message(WARNING "C++14 is required to use SimGrid. Enable it with e.g. -std=c++14")