Closed agarny closed 3 years ago
ccmake
is a GUI configuration application and the behaviour there is different. If you instead configure with cmake -G Ninja .. -DBUILD_SHARED=OFF
and then use ccmake. You will get the desired behaviour. The behaviour that you see is the expected behaviour.
Hmm... fair point.
Say that I do the following:
After I configure libCellML, I will in my case get:
From there, if I set
LIBCELLML_BUILD_SHARED
toON
and reconfigure, I still get the above output. In other words,LIBCELLML_BUILD_SHARED
cannot be modified if a value forBUILD_SHARED
has been passed tocmake
/ccmake
.For what it is worth, this can be fixed by replacing:
with:
(The same applies to the other libCellML-related variables.)