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

Deprecate FindRequiredPackage #88

Merged
merged 2 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions FindRequiredPackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# endif ()

macro (FindRequiredPackage packageName)
message(DEPRECATION "Remove in v7.1. Use find_package's REQUIRED argument instead.")

string(TOUPPER ${packageName} upperPackageName)
if ((DEFINED ${upperPackageName}_ROOT_DIR) AND (DEFINED CMAKE_PREFIX_PATH))
set(CMAKE_PREFIX_SAVE ${CMAKE_PREFIX_PATH})
Expand Down
4 changes: 2 additions & 2 deletions FindSubnetTree.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
#
# Usage of this module as follows:
#
# find_package(PythonInterp REQUIRED)
# find_package(Python REQUIRED COMPONENTS Interpreter)
# find_package(SubnetTree)
#
# Variables defined by this module:
#
# SUBNETTREE_FOUND Python successfully imports SubnetTree module

if (NOT SUBNETTREE_FOUND)
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import SubnetTree"
execute_process(COMMAND "${Python_EXECUTABLE}" -c "import SubnetTree"
RESULT_VARIABLE SUBNETTREE_IMPORT_RESULT)

if (SUBNETTREE_IMPORT_RESULT)
Expand Down
Loading