CMake: Error out if trying to build generic builds on Windows

Generic builds have never been supported on Windows.
This commit is contained in:
Joshua Vandaële 2026-02-26 00:02:02 +01:00
parent dfeb58b018
commit 6551c9bc24
No known key found for this signature in database
GPG Key ID: 6BB95AF71EB0F406

View File

@ -198,6 +198,9 @@ else()
endif()
if(ENABLE_GENERIC)
if(WIN32)
message(FATAL_ERROR "Generic builds are not supported on Windows!")
endif()
message(STATUS "Warning! Building generic build!")
set(_M_GENERIC 1)
add_definitions(-D_M_GENERIC=1)