Clang / STL Renderers ...
Answered
Is there an up to date example of getting the STL renderers to work on CLion / OS X Sierra?
Currently, with the latest CLion, using bundled CMake/LLDB, when I expand something simple like a std::map<T> in the debugger, nothing shows up ...
I have tried adding :
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -stdlib=libstdc++")
but I get warnings that libstd++ is depreciated and please move to libc++
so I tried : set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -stdlib=libc++")
but then CLion can't seem to resolve includes such as:
#include <atomic>
so i'm a bit confused ...
Please sign in to leave a comment.
Hallo Cody,
Please check these fundamental docs, looks like syntax errors:
https://cmake.org/cmake/help/v3.8/prop_tgt/CXX_STANDARD.html
https://stackoverflow.com/questions/42834844/how-to-get-cmake-to-pass-either-std-c14-c1y-or-c17-c1z-based-on-gcc-vers
try this:
set(CMAKE_CXX_STANDARD 11)
orset(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -std=c++1y")
We have the related issue in the tracker: https://youtrack.jetbrains.com/issue/CPP-6671. Feel free to comment or upvote and sorry for the inconvenience.