[CMake] [cmake-developers] C++11/C++14 doesn't work in check_cxx_source_compiles
Brad King
brad.king at kitware.com
Mon Nov 28 09:57:50 EST 2016
On 11/24/2016 01:43 PM, Roman Wüger wrote:
> Shouldn't this be done by CMAKE_CXX_STANDARD?
Yes, this is a known problem with try_compile. It needs to learn to honor
the CMAKE_<LANG>_STANDARD. CMake itself works around this problem in some
cases, e.g.
* https://gitlab.kitware.com/cmake/cmake/blob/v3.7.0/Source/Checks/cm_cxx14_cstdio.cmake#L8
Here is a new issue for this:
* https://gitlab.kitware.com/cmake/cmake/issues/16456
-Brad
More information about the CMake
mailing list