CMake options
已回答
Hello,
I am using Clion 2021.1.1 on a mac.
I am following the directions at https://www.jetbrains.com/help/clion/how-to-switch-compilers-in-clion.html
There is says to use -D Var under CMake options to set variables.
What I see instead are Build Options under CMake and using the -D to set the MAKE_CXX_COMPILER variable results in:
"Invalid option -- D"
Did something change and instead should I just set the Build option to CMAKE_CXX_COMPILER=/usr/local/bin/g++-11 instead of -D CMAKE_CXX_COMPILER=/usr/local/bin/g++-11?
请先登录再写评论。
Hello!
Those variables need to be set in the CMake options field, not in the Build options field.