From 4fef3d07be8c6e18123ce624b4d668c2aa992e77 Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Tue, 30 Jun 2026 10:29:33 +0800 Subject: [PATCH] Disable OpenCL PQC tests by default on macOS --- CMakeLists.txt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5816a5df..dbc4268b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,21 +91,6 @@ if (NOT MSVC) endif() endif() -if (APPLE) - include(CheckCSourceCompiles) - set(GMSSL_CMAKE_REQUIRED_LIBRARIES_SAVE "${CMAKE_REQUIRED_LIBRARIES}") - set(CMAKE_REQUIRED_LIBRARIES "-framework OpenCL") - check_c_source_compiles( - "#include - int main(void) { cl_uint n = 0; clGetPlatformIDs(0, 0, &n); return 0; }" - GMSSL_HAVE_MACOS_OPENCL) - set(CMAKE_REQUIRED_LIBRARIES "${GMSSL_CMAKE_REQUIRED_LIBRARIES_SAVE}") - if (GMSSL_HAVE_MACOS_OPENCL) - set(GMSSL_DEFAULT_ENABLE_LMS_CL ON) - set(GMSSL_DEFAULT_ENABLE_XMSS_CL ON) - endif() -endif() - option(ENABLE_TEST_SPEED "Enable test speed" OFF) option(ENABLE_SLOW_TEST "Enable slow tests" OFF)