Unfortunately I am not familiar with CLion, perhaps someone else here can assist in that regard.
I’d recommend taking a look at our example Makefiles in our Linux SDK. The flags they use are likely the same what you’ll need for CLion.
The basics are usually:
Based on your response, it looks like CMake syntax, so you will probably need to use the following commands:
I found this information here.