cellml / libcellml

Repository for libCellML development.
https://libcellml.org
Apache License 2.0
17 stars 21 forks source link

CMake: generate a SEND_ERROR message when an option is ON but the corresponding tool is not available #962

Open agarny opened 3 years ago

agarny commented 3 years ago

Say that you want to configure libCellML with COMPILER_CACHE set to ON, but that you don't have any compiler cache tool. If so then you will get a warning: https://github.com/cellml/libcellml/blob/23ce671429f63052be0394e6b4c66dd7c4c52d97/CMakeLists.txt#L54 This means that you will still be able to generate a configuration, albeit a broken one. I would therefore expect us to generate not a WARNING message, but a SEND_ERROR message...?