I have the following line in CMakeLists.txt:
set (BUILD_SHARED_LIBS yes CACHE BOOL "Build shared library or not")
In the GUI, this would allow (I assume) unchecking the box after initially running CMake. However, I need to be able to disable building shared libs from the command line. How can I override BUILD_SHARED_LIBS
from the command line?