commit 9631b86: [Minor] Remove useless checks
Vsevolod Stakhov
vsevolod at rspamd.com
Tue Mar 29 19:49:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-03-28 20:29:12 +0100
URL: https://github.com/rspamd/rspamd/commit/9631b8674c5f782c548fe114f12b61bcdf59f318
[Minor] Remove useless checks
---
cmake/FindArch.cmake | 2 --
cmake/Hyperscan.cmake | 7 -------
2 files changed, 9 deletions(-)
diff --git a/cmake/FindArch.cmake b/cmake/FindArch.cmake
index 277289248..d1defc82b 100644
--- a/cmake/FindArch.cmake
+++ b/cmake/FindArch.cmake
@@ -90,8 +90,6 @@ function(target_architecture output_var)
else()
file(WRITE "${CMAKE_BINARY_DIR}/arch.c" "${archdetect_c_code}")
- enable_language(C)
-
# Detect the architecture in a rather creative way...
# This compiles a small C program which is a series of ifdefs that selects a
# particular #error preprocessor directive whose message string contains the
diff --git a/cmake/Hyperscan.cmake b/cmake/Hyperscan.cmake
index 6bc3e6d11..dc19f49c6 100644
--- a/cmake/Hyperscan.cmake
+++ b/cmake/Hyperscan.cmake
@@ -5,11 +5,4 @@ if (ENABLE_HYPERSCAN MATCHES "ON")
hs include/hs
ROOT ${HYPERSCAN_ROOT_DIR} MODULES libhs)
set (WITH_HYPERSCAN 1)
-
- # For static linking with Hyperscan we need to link using CXX
- if (ENABLE_HYPERSCAN MATCHES "ON")
- if (${HYPERSCAN_LIBRARY} MATCHES ".*[.]a$" OR STATIC_HYPERSCAN)
- enable_language (CXX)
- endif ()
- endif ()
endif ()
More information about the Commits
mailing list