Answer the question
In order to leave comments, you need to log in
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++"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question