On 09/14/2015 02:29 PM, Raphael Kubo da Costa wrote: > Do you mean checking for FreeBSD and compiler version? I thought it'd be > too specific for upstream and was just going to make it be built with a > different standard (or no standard) on FreeBSD itself.
I meant to add a try_compile check with CMAKE_FLAGS -DCMAKE_C_STANDARD=11 using a source file that exercises the problematic code in question. See similar checks here: http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/Checks/cm_cxx14_cstdio.cmake;hb=v3.3.1 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/Checks/cm_cxx11_unordered_map.cmake;hb=v3.3.1 that check if using certain CMAKE_CXX_STANDARD values works for some cases CMake hits with broken C++11 and C++14 platform/compiler combos. This will help CMake build out of the box on FreeBSD with GCC 4.7 without manually adding -DCMake_NO_C_STANDARD=TRUE. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers