Re: [CMake] detecting __attribute__((weak)) support

2015-01-19 Thread Laurent Demailly
Bug/view.php?id=15359 for weak symbol knowledge by cmake http://public.kitware.com/Bug/view.php?id=15361 for check_cxx_source_compiles Thanks! Laurent On 1/19/15, 1:35 PM, "Laurent Demailly" wrote: >I searched and didn't find yet ­ would it be reasonable to have built in >su

[CMake] detecting __attribute__((weak)) support

2015-01-19 Thread Laurent Demailly
I searched and didn't find yet ­ would it be reasonable to have built in support in cmake for knowing if the platform/compiler supports weak symbols ? I'm porting the following autconf fragment: AC_CACHE_CHECK( [for weak symbol support], [folly_cv_prog_cc_weak_symbols], [AC_LINK_IFELSE(

Re: [CMake] set(CMAKE_CXX_STANDARD 11) on macos - "...CMake does not know the compile flags to use to enable it."

2015-01-16 Thread Laurent Demailly
Answering my own question : this is fixed on trunk http://www.cmake.org/Bug/view.php?id=15355 Laurent From: Laurent Demailly mailto:ldemai...@fb.com>> Date: Wednesday, January 14, 2015 at 8:33 PM To: "cmake@cmake.org<mailto:cmake@cmake.org>" mailto:cmake@cmake.org&

[CMake] set(CMAKE_CXX_STANDARD 11) on macos - "...CMake does not know the compile flags to use to enable it."

2015-01-14 Thread Laurent Demailly
Hi all, I have a very simple CMakeLists.txt – am using cmake 3.1 to be able to easily request C++ 11 – it works fine on ubuntu but not on MacOS with Xcode 6 and command line tools installed: $ cat CMakeLists.txt cmake_minimum_required(VERSION 3.1) project("Test1" C CXX) # We need C++ 11 set(C