Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to CMakeLists #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.
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.

None yet

1 participant