Skip to content

Commit

Permalink
Improve pybind11 message (pytorch#11640)
Browse files Browse the repository at this point in the history
Summary:
Improving the message based on pytorch#11570
Pull Request resolved: pytorch#11640

Differential Revision: D10033383

Pulled By: orionr

fbshipit-source-id: 0cdcdbe0582d896283a12970aebe771efa390dd2
  • Loading branch information
orionr authored and facebook-github-bot committed Sep 25, 2018
1 parent 364ae10 commit 94c513c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,15 @@ find_package(pybind11 CONFIG)
if((DEFINED pybind11_DIR) AND pybind11_DIR)
get_target_property(pybind11_INCLUDE_DIRS pybind11::pybind11 INTERFACE_INCLUDE_DIRECTORIES)
else()
message("pybind11 config not found. Fallback to legacy find.")
find_package(pybind11)
endif()

if(pybind11_FOUND)
message(STATUS "System pybind11 found")
message(STATUS "pybind11l include dirs: " ${pybind11_INCLUDE_DIRS})
include_directories(SYSTEM ${pybind11_INCLUDE_DIRS})
else()
message(STATUS "Using third_party/pybind11.")
include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../third_party/pybind11/include)
endif()

Expand Down

0 comments on commit 94c513c

Please sign in to comment.