O
O
opaquu242019-04-12 19:00:12
C++ / C#
opaquu24, 2019-04-12 19:00:12

clion. How to set up release compilation and make it the default for all projects?

I use Clion, CMake respectively and Mingw compiler
I want to compile a program whose exe file will work properly without the need to throw various .dll files to it.
I did this by adding a new profile and entering the following value in CMake options:

-D CMAKE_EXE_LINKER_FLAGS="-static-libgcc -static-libstdc++"

But the problem is that in new projects this setting is reset, and the algorithm of actions needs to be repeated.

5cb0b38f0ace0866450206.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question