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

2015-01-19 Thread Laurent Demailly
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 ldemai...@fb.com wrote: I searched and didn't find yet ­ would it be reasonable to have built in support in cmake for knowing if the platform

[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 ldemai...@fb.commailto:ldemai...@fb.com Date: Wednesday, January 14, 2015 at 8:33 PM To: cmake@cmake.orgmailto:cmake@cmake.org cmake@cmake.orgmailto: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