]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove useless checks
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 28 Mar 2022 19:29:12 +0000 (20:29 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 28 Mar 2022 19:29:12 +0000 (20:29 +0100)
cmake/FindArch.cmake
cmake/Hyperscan.cmake

index 2772892482dbf3c2ea93bc1658b0f3eaf708a887..d1defc82bea255d5e79300dfd6b87c4c6e8e6ddf 100644 (file)
@@ -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
index 6bc3e6d11787cc5ff79de1f03cbf807e3f36ad3c..dc19f49c6ffacf39691a3a4863a3761ae5f55d3f 100644 (file)
@@ -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 ()