Fix NA SM to only compile if CMA or APPLE (fixes
@@ -131,6 +131,7 @@ if(NA_USE_SM)
else()
include(CheckFunctionExists)
check_function_exists(process_vm_readv NA_SM_HAS_CMA)
+ if(NA_SM_HAS_CMA OR APPLE)
set(NA_PLUGINS ${NA_PLUGINS} na)
set(NA_HAS_SM 1)
set(NA_SM_SHM_PREFIX "na_sm" CACHE STRING
@@ -139,6 +140,9 @@ if(NA_USE_SM)
"Location to use for NA SM temp data.")
mark_as_advanced(NA_SM_SHM_PREFIX)
mark_as_advanced(NA_SM_TMP_DIRECTORY)
+ else()
+ message(FATAL_ERROR "Platform does not meet NA SM requirements.")
+ endif()
endif()
endif()
