Is there a way to enable C++14 in CLion? Currently my code compiles, but the syntax highlight marks many lines as errors that are correct C++14. Is there a setting that I can use or something to enable C++14 support in the editor of CLion?
Update: Any updates in CLion 1.2 regarding C++14 support?
In CLion, you can use GCC-based compilers, Clang, Clang-cl, Visual Studio C++ compiler, as well as IAR compiler and custom-defined compiler.
In CLion, go to File | Settings | Build, Execution, Deployment | Toolchains and select the Visual Studio toolchain that you want to configure, or create a new one. Point the C Compiler and C++ Compiler fields to clang-cl.exe. CLion will suggest the paths detected automatically.
Now clion supports c++14. set(CMAKE_CXX_STANDARD 14)
in CMakeLists.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With