I don't see this in a quick scan through 
CMAKE_DIR/share/cmake-3.5/Help/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.rst.  This 
would be the C++11 addition under 
http://en.cppreference.com/w/cpp/language/storage_duration#Static_local_variables
 - or, the feature matrix at 
https://msdn.microsoft.com/en-us/library/hh567368.aspx refers to this as "Magic 
statics" and refers to 
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm .

Before I file a bug requesting an addition for this, I thought I'd check to see 
if there's something relevant in the C++ feature list that I missed in my quick 
scan.

For now, I'm using a custom definition of
#define CXX_STATIC_LOCAL_VAR_THREAD_SAFE_INIT \
    (defined(__GNUC__) || defined(__clang__) || \
     (defined(_MSC_VER) && _MSC_VER >= 1900))  // VS 2015 / vc14
(given that the rest of our program has a strong requirement on other C++11 
features anyway).
--
Daniel
-- 

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

Reply via email to