Closed agarny closed 2 years ago
I don't agree that INSTALL_PREFIX
knows about CMAKE_INSTALL_PREFIX
. Can you demonstrate how this is the case?
The configuration of libCellML is setup to ignore CMAKE_BUILD_TYPE
because it does not exhibit consistent behaviour. This is why it has been internalised and only manipulated through LIBCELLML_INSTALL_PREFIX
or the command line shortened form INSTALL_PREFIX
.
Sorry, it's not INSTALL_PREFIX
that knows about CMAKE_INSTALL_PREFIX
, but LIBCELLML_INSTALL_PREFIX
. So, by extension, it would be nice if LIBCELLML_BUILD_TYPE
was to known about CMAKE_BUILD_TYPE
.
CMake comes with some options (
CMAKE_BUILD_TYPE
andCMAKE_INSTALL_PREFIX
) for which we have our own version (BUILD_TYPE
andINSTALL_PREFIX
).INSTALL_PREFIX
knows aboutCMAKE_INSTALL_PREFIX
, butBUILD_TYPE
doesn't. This means that if I pass-DCMAKE_BUILD_TYPE=XXX
to CMake then libCellML will completely ignore it and will always build a debug version of libCellML.