[DiscordArchive] I changed to `set(_MySQL_versions 5.7 8.0)`
[DiscordArchive] I changed to `set(_MySQL_versions 5.7 8.0)`
Archived author: Foe • Posted: 2023-03-05T00:36:02.375000+00:00
Original source
or message( FATAL_ERROR
Archived author: Foe • Posted: 2023-03-05T00:36:22.687000+00:00
Original source
fatal being if you want the cmake process to halyt
Archived author: Foe • Posted: 2023-03-05T00:36:24.757000+00:00
Original source
halt*
Archived author: Foe • Posted: 2023-03-05T00:36:34.205000+00:00
Original source
send_error will just continue the rest of the cmake task
Archived author: Anchy • Posted: 2023-03-05T00:37:14.732000+00:00
Original source
```cmake
message(SEND_ERROR "stop that")
```
Archived author: Kitzunu • Posted: 2023-03-05T00:38:04.031000+00:00
Original source
```cmake
# Set allowed MySQL and MariaDB versions
set(_MySQL_mariadb_versions 10.5 10.6)
set(_MySQL_versions 5.7 8.0)
# Set Min allowed MySQL and MariaDB versions
set(_MySQL_mariadb_min_version 10.5)
set(_MySQL_min_version 5.7)
# Set Max allowed MySQL and MariaDB versions
set(_MySQL_mariadb_max_version 10.6)
set(_MySQL_max_version 8.0)
.
.
.
if(_mariadb_VERSION VERSION_GREATER_EQUAL _MySQL_mariadb_max_version OR _mariadb_VERSION VERSION_LESS_EQUAL _MySQL_mariadb_min_version)
message(FATAL_ERROR "Using unsupported MariaDB version!")
```
something like that?
Archived author: Foe • Posted: 2023-03-05T00:38:19.850000+00:00
Original source
I'd say "and" instead of "or"
Archived author: Foe • Posted: 2023-03-05T00:38:22.340000+00:00
Original source
in your if statement
Archived author: Foe • Posted: 2023-03-05T00:38:34.959000+00:00
Original source
and it should be less or equal to max
Archived author: Foe • Posted: 2023-03-05T00:38:42.467000+00:00
Original source
and greater or equal to min