Thanks Brad for the review.

I updated the topic according to your comments. The new commit is this:

  FindGTK2: Enable c++11 for sigc++ 2.5.1 or later
  https://cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=33eb8fa


On 06/10/2015 17:05, Brad King wrote:
>> +            set_property(TARGET GTK2::sigc++ PROPERTY 
>> INTERFACE_COMPILE_FEATURES cxx_alias_templates cxx_lambdas)
> 
> Nice.  Please add a comment to explain that these are the features
> needed by clients in order to include the project headers.

I examined the headers a bit more and found out that c++11 is used a lot
more than I was expecting:

* cxx_lambdas is _not_ required (the lambda that I noticed was actually
  in a comment).

* at least these features are required:
   - cxx_alias_templates
   - cxx_auto_type
   - cxx_decltype
   - cxx_deleted_functions
   - cxx_noexcept
   - cxx_nullptr
   - cxx_right_angle_brackets
   - cxx_rvalue_references
   - cxx_variadic_templates

* The <type_traits> header is required, but I don't think that there is
  a feature for that. Also checking if the header exists it is not
  good, because (at least for gcc) it does exist, but including it with
  c++11 disabled will cause an #error. Is there a way for c++11 headers?

* std::move is used in the headers, but I'm not sure if there is a
  feature for that.



I updated the set_property command accordingly, but I'm not 100% sure
that there aren't other c++11 features used, because I just had a quick
look at the headers.



Cheers,
 Daniele
-- 

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

Reply via email to