mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-17 01:41:51 +03:00
reorganize OS detection
This commit is contained in:
@@ -7,16 +7,15 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
|
||||
option(FAT_RUNTIME "Build a library that supports multiple microarchitectures" OFF)
|
||||
message("Checking Fat Runtime Requirements...")
|
||||
if (FAT_RUNTIME AND NOT LINUX)
|
||||
if (FAT_RUNTIME)
|
||||
message("Checking Fat Runtime Requirements...")
|
||||
if (NOT LINUX)
|
||||
message(FATAL_ERROR "Fat runtime is only supported on Linux OS")
|
||||
endif()
|
||||
|
||||
if (USE_CPU_NATIVE AND FAT_RUNTIME)
|
||||
else()
|
||||
if (USE_CPU_NATIVE AND FAT_RUNTIME)
|
||||
message(FATAL_ERROR "Fat runtime is not compatible with Native CPU detection")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (FAT_RUNTIME AND LINUX)
|
||||
if (NOT (ARCH_IA32 OR ARCH_X86_64 OR ARCH_AARCH64))
|
||||
message(FATAL_ERROR "Fat runtime is only supported on Intel and Aarch64 architectures")
|
||||
else()
|
||||
@@ -32,9 +31,8 @@ if (FAT_RUNTIME AND LINUX)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if (NOT RELEASE_BUILD)
|
||||
message(FATAL_ERROR "Fat runtime is only built on Release builds")
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user