[DiscordArchive] I changed to `set(_MySQL_versions 5.7 8.0)`
[DiscordArchive] I changed to `set(_MySQL_versions 5.7 8.0)`
Archived author: Kitzunu • Posted: 2023-03-05T00:29:15.883000+00:00
Original source
could you do
```cmake
if (_mariadb_VERSION VERSION_LESS _MySQL_mariadb_versions)
```
I guess no as _MySQL_mariadb_versions defines 2 versions
Archived author: Foe • Posted: 2023-03-05T00:29:34.852000+00:00
Original source
correct, you'd have to use tlike a mariadb_minimum_version or something
Archived author: Foe • Posted: 2023-03-05T00:29:38.542000+00:00
Original source
like*
Archived author: Foe • Posted: 2023-03-05T00:29:49.997000+00:00
Original source
with a single val and not a list
Archived author: Kitzunu • Posted: 2023-03-05T00:30:19.411000+00:00
Original source
sure
Archived author: Foe • Posted: 2023-03-05T00:32:57.753000+00:00
Original source
so I'd do like...
Archived author: Foe • Posted: 2023-03-05T00:33:37.614000+00:00
Original source
```cmake
if(_mariadb_VERSION VERSION_GREATER_EQUAL 10.5 AND _mariadb_VERSION VERSION_LESS_EQUAL 10.9)```
Archived author: Foe • Posted: 2023-03-05T00:33:59.979000+00:00
Original source
10.5 and 10.9 could be replaced with min and max variables of course
Archived author: Kitzunu • Posted: 2023-03-05T00:35:36.095000+00:00
Original source
how do I throw an error in cmake? I forget lol
Archived author: Foe • Posted: 2023-03-05T00:35:55.763000+00:00
Original source
message( SEND_ERROR "You can't do that" )