Closed sezero closed 3 years ago
Probably Yes for BUILD_SHARED_LIBS
, but I'm not sure about CMAKE_BUILD_TYPE
. In fact, an empty CMAKE_BUILD_TYPE
will allow you to pass -O2
instead of -O3
by default, for example.
Probably Yes for
BUILD_SHARED_LIBS
, but I'm not sure aboutCMAKE_BUILD_TYPE
. In fact, an emptyCMAKE_BUILD_TYPE
will allow you to pass-O2
instead of-O3
by default, for example.
You do what you do from cmdline, and that's good, but gui users (e.g. windows users) won't be doing that.
I don't know what the point is now to use cmake-gui on Windows, if you can just open the CMake project folder in Visual Studio or VS Code. Everything is automatically configured and managed via the IDE.
Well, I have no strong opinions on the case - just notified you of the issue.
Ok, let's leave as it is.
Is that intentional? Maybe you need something like the following in CMakeLists.txt?