-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CMakefile of ONNX (onnx#563)
- Loading branch information
Yinghai Lu
authored
Mar 3, 2018
1 parent
679d70e
commit 8bbeb2a
Showing
2 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Try to find the pybind11 library and headers. | ||
# pybind11_FOUND - system has pybind11 | ||
# pybind11_INCLUDE_DIRS - the pybind11 include directory | ||
|
||
find_path(pybind11_INCLUDE_DIR | ||
NAMES pybind11/pybind11.h | ||
DOC "The directory where pybind11 includes reside" | ||
) | ||
|
||
set(pybind11_INCLUDE_DIRS ${pybind11_INCLUDE_DIR}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(pybind11 | ||
FOUND_VAR pybind11_FOUND | ||
REQUIRED_VARS pybind11_INCLUDE_DIR | ||
) | ||
|
||
mark_as_advanced(pybind11_FOUND) |