• Joel Johnson's avatar
    Always use consistent CXX_STANDARD · 12ceb014
    Joel Johnson authored
    Since CMake has subdirectory variable scope, unilaterally set the
    CMAKE_CXX_STANDARD variable to use C++11. This covers cases with the
    library being included externally, both in cases of only C++98 being
    specified, as well as later versions being specified (since the
    CXX_STANDARD itself isn't a library dependency, only the PUBLIC
    target_compile_features on jsoncpp_lib). The previous direct check for
    C++98 is handled by requiring C++11 on this library; should the
    compiler being used not support C++11 then CMake will issue an error.
    12ceb014
CMakeLists.txt 8.51 KB