From 8daf62a539c8384ebdc07b96f14e789090ee5cd5 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Wed, 13 Sep 2023 12:26:49 +0200 Subject: [PATCH] wrap linux only --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0581b6281..48e767197 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -60,7 +60,7 @@ include_directories( find_package(re CONFIG REQUIRED HINTS ../cmake) -if(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID MATCHES "GNU") +if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(HAVE_WRAP TRUE) list(APPEND RE_DEFINITIONS HAVE_WRAP) endif()