Browse Source

[Minor] Remove useless checks

tags/3.3
Vsevolod Stakhov 2 years ago
parent
commit
9631b8674c
No account linked to committer's email address
2 changed files with 0 additions and 9 deletions
  1. 0
    2
      cmake/FindArch.cmake
  2. 0
    7
      cmake/Hyperscan.cmake

+ 0
- 2
cmake/FindArch.cmake View 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

+ 0
- 7
cmake/Hyperscan.cmake View 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 ()

Loading…
Cancel
Save