Re: [cmake-developers] C++11 only for a specified subdirectory

2016-03-08 Thread Attila Krasznahorkay
Hi Roman, If you only set set( CMAKE_CXX_STANDARD 11 ) in that subdirectory, then this should happen automatically. (Since the variable will not be visible as soon as you go out of the scope of this "subdirectory".) Otherwise you could just set the CXX_STANDARD property on the targets that s

Re: [cmake-developers] C++11 only for a specified subdirectory

2016-03-04 Thread Konstantin Podsvirov
Hi, Roman! You can use properties for each target: C_STANDART C_STANDARD_REQUIRED CXX_STANDARD CXX_STANDARD_REQUIRED Read online: https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html#properties-on-targets And this question is for cm...@cmake.org list :-) 04.03.2016, 16:20, "Rom

[cmake-developers] C++11 only for a specified subdirectory

2016-03-04 Thread Roman Wüger
Hi, is it possible to activate C++11 only for a subdirectory? Regards Roman -- 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 eac