Skip to content
Permalink
Browse files
specify Python3 rather than Python in MSVC-specific block
  • Loading branch information
jmalkin committed May 4, 2022
1 parent a1fb186 commit e46a3ee6bf7d89b29c3c555eda02b9df5e9ede9a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -23,7 +23,7 @@ endif()

# only Windows+MSVC seems to have trouble locating pybind11
if (MSVC)
execute_process(COMMAND cmd.exe /c ${CMAKE_CURRENT_SOURCE_DIR}/pybind11Path.cmd "${Python_EXECUTABLE}"
execute_process(COMMAND cmd.exe /c ${CMAKE_CURRENT_SOURCE_DIR}/pybind11Path.cmd "${Python3_EXECUTABLE}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE EXTRA_PACKAGE_PATH)

0 comments on commit e46a3ee

Please sign in to comment.