Skip to content

Commit

Permalink
Use PYTHON3_LIBRARIES if PYTHON3_LINK_LIBRARIES is empty.
Browse files Browse the repository at this point in the history
This is a fix for SmuView issue pybind#14.
  • Loading branch information
knarfS committed Apr 10, 2020
1 parent 69afea8 commit c55dbf6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/pybind11Tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ if (PkgConfig_FOUND)
pkg_check_modules(PYTHON3 python3) # TODO PYBIND11_PYTHON_VERSION
if (PYTHON3_FOUND)
set(PYTHON_INCLUDE_DIRS ${PYTHON3_INCLUDE_DIRS})
set(PYTHON_LIBRARIES ${PYTHON3_LINK_LIBRARIES})
if (PYTHON3_LINK_LIBRARIES)
# Try to use the fully qualified name for cross compiling
set(PYTHON_LIBRARIES ${PYTHON3_LINK_LIBRARIES})
else()
set(PYTHON_LIBRARIES ${PYTHON3_LIBRARIES})
endif()
set(PYTHON_MODULE_PREFIX "")
set(PYTHON_MODULE_EXTENSION "")
set(PYTHON_VERSION_MAJOR "") # TODO
Expand Down

0 comments on commit c55dbf6

Please sign in to comment.