fix: find_import didn't work properly for classic tools (#2550)

* fix: find_import didn't work properly for classic tools

* ci: fix all files not being checked in style run
This commit is contained in:
Henry Schreiner
2020-10-05 15:31:00 -04:00
committed by GitHub
parent 1411207711
commit 2a2f52201d
6 changed files with 10 additions and 8 deletions

View File

@@ -94,9 +94,10 @@ execute_process(
ERROR_VARIABLE _PYTHON_MODULE_EXTENSION_ERR
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (_PYTHON_MODULE_EXTENSION STREQUAL "")
message(FATAL_ERROR "pybind11 could not query the module file extension, likely the 'distutils'"
"package is not installed. Full error message:\n${_PYTHON_MODULE_EXTENSION_ERR}")
if(_PYTHON_MODULE_EXTENSION STREQUAL "")
message(
FATAL_ERROR "pybind11 could not query the module file extension, likely the 'distutils'"
"package is not installed. Full error message:\n${_PYTHON_MODULE_EXTENSION_ERR}")
endif()
# This needs to be available for the pybind11_extension function