qmake prohibit disabling tom in tom.pri

It's illogical to allow disabling tom if the user is trying to link
against the tom-related code, so prohibit this scenario.

[skip ci]
This commit is contained in:
silverqx
2023-02-06 09:58:40 +01:00
parent 7a3594c38c
commit 91e7a5f426

View File

@@ -21,8 +21,10 @@ CONFIG(dll, dll|shared|static|staticlib): \
# Disable the ORM-related source code
disable_orm: DEFINES *= TINYORM_DISABLE_ORM
# Disable the tom-related source code
disable_tom: DEFINES *= TINYORM_DISABLE_TOM
# Prohibit disabling the tom-related source code and header files
disable_tom: \
error( "Disabling the tom is forbidden in the tom.pri, please remove\
the 'disable_tom' configuration." )
# File version
# ---