File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
include (SwiftAddCustomCommandTarget )
2
2
include (SwiftSetIfArchBitness )
3
3
4
+ find_package (Python2 COMPONENTS Interpreter REQUIRED )
5
+
4
6
# Create a target to process single gyb source with the 'gyb' tool.
5
7
#
6
8
# handle_gyb_source_single(
@@ -58,7 +60,7 @@ function(handle_gyb_source_single dependency_out_var_name)
58
60
COMMAND
59
61
"${CMAKE_COMMAND} " -E make_directory "${dir} "
60
62
COMMAND
61
- "${PYTHON_EXECUTABLE} " "${gyb_tool} " ${SWIFT_GYB_FLAGS} ${GYB_SINGLE_FLAGS} -o "${GYB_SINGLE_OUTPUT} .tmp" "${GYB_SINGLE_SOURCE} "
63
+ "$<TARGET_FILE:Python2::Interpreter> " "${gyb_tool} " ${SWIFT_GYB_FLAGS} ${GYB_SINGLE_FLAGS} -o "${GYB_SINGLE_OUTPUT} .tmp" "${GYB_SINGLE_SOURCE} "
62
64
COMMAND
63
65
"${CMAKE_COMMAND} " -E copy_if_different "${GYB_SINGLE_OUTPUT} .tmp" "${GYB_SINGLE_OUTPUT} "
64
66
COMMAND
You can’t perform that action at this time.
0 commit comments