We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97aa54f commit 76e06c8Copy full SHA for 76e06c8
tools/pybind11Tools.cmake
@@ -18,7 +18,7 @@ find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} REQUIRED)
18
include(CheckCXXCompilerFlag)
19
include(CMakeParseArguments)
20
21
-if(NOT PYBIND11_CPP_STANDARD)
+if(NOT PYBIND11_CPP_STANDARD AND NOT CMAKE_CXX_STANDARD)
22
if(NOT MSVC)
23
check_cxx_compiler_flag("-std=c++14" HAS_CPP14_FLAG)
24
0 commit comments