Skip to content

Conversation

Flow-It
Copy link

@Flow-It Flow-It commented Jan 14, 2021

The usage of CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR is
encouraged over the use of CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR
respectivly.
In addition, bump the required minimum version to 3.0 to avoid warnings
about the old version 2.
CMAKE_MODULE_PATH is not a variable to hold a specific directory.
Instead, add the cmake directory which holds the hyperscan-specific
CMake modules to CMAKE_MODULE_PATH and replace its usages. include()
directives can now simply use the filename (it is picked up without the
.cmake extension, because we added the directory to the module path).
The remaining usages where the exact directory was referenced are
replaced with $PROJECT_SOURCE_DIR/cmake, although one could probably
even use a new variable for that directory.

The usage of CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR is
encouraged over the use of CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR
respectivly.
In addition, bump the required minimum version to 3.0 to avoid warnings
about the old version 2.
CMAKE_MODULE_PATH is not a variable to hold a specific directory.
Instead, add the cmake directory which holds the hyperscan-specific
CMake modules to CMAKE_MODULE_PATH and replace its usages. include()
directives can now simply use the filename (it is picked up without the
.cmake extension, because we added the directory to the module path).
The remaining usages where the exact directory was referenced are
replaced with $PROJECT_SOURCE_DIR/cmake, although one could probably
even use a new variable for that directory.
GerHobbelt pushed a commit to GerHobbelt/hyperscan that referenced this pull request Aug 31, 2025
Major refactoring of teddy and teddy_avx2, unrolling macros to C++ templated functions

---------

Co-authored-by: G.E <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant