My question is about CLion from JetBrains.
I realized that with visual studio it is possible to install the executable as a "multi-threaded", and not a "multi-threaded DLL". In other words, this would allow the use of .exe on any computer after compilation.
My question is similar, but for CLion.
How in the world do I set the same option inside CLion? At first, when I could not find it, I realized that I needed to edit CMAKE.txt
I also found that I can use the -static option, but when I typed:
set(CMAKE_EXE_LINKER_FLAGS "-static")
When I put it, it didn’t work. What else do I need to do to run .exe on any computer with CLion and how do I do it?
Sorry I didn’t know. Actually, I am new to C ++ and just started to study and took the C ++ Bible to try and learn.
Honestly, I don’t see the point of creating a program if you cannot share it with other people. Even if they installed the visual runtime libraries or any library that they would need, that would be completely pointless, so why did I find statics is the best way to go.
I just don't know how for CLion.
Thanks.
source share