File tree 3 files changed +8
-16
lines changed
3 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -91,22 +91,18 @@ if (COMPILER_SUPPORTS_EXTRA_SEMI_WARNING)
91
91
add_compile_options ("-Wextra-semi" )
92
92
endif ()
93
93
94
- if (${CMAKE_VERSION} VERSION_LESS_EQUAL "3.12" )
95
- find_package (PythonInterp 3 REQUIRED)
96
- else ()
97
- find_package (Python COMPONENTS Interpreter REQUIRED)
98
- endif ()
94
+ find_package (Python COMPONENTS Interpreter REQUIRED)
99
95
100
96
if (SHADERC_ENABLE_COPYRIGHT_CHECK)
101
97
add_custom_target (check-copyright ALL
102
- ${PYTHON_EXECUTABLE } ${CMAKE_CURRENT_SOURCE_DIR} /utils/add_copyright.py
98
+ ${Python_EXECUTABLE } ${CMAKE_CURRENT_SOURCE_DIR} /utils/add_copyright.py
103
99
--check
104
100
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
105
101
COMMENT "Check copyright" )
106
102
endif ()
107
103
108
104
add_custom_target (add-copyright
109
- ${PYTHON_EXECUTABLE } ${CMAKE_CURRENT_SOURCE_DIR} /utils/add_copyright.py
105
+ ${Python_EXECUTABLE } ${CMAKE_CURRENT_SOURCE_DIR} /utils/add_copyright.py
110
106
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
111
107
COMMENT "Add copyright" )
112
108
@@ -134,7 +130,7 @@ if(${SHADERC_ENABLE_EXAMPLES})
134
130
endif ()
135
131
136
132
add_custom_target (build -version
137
- ${PYTHON_EXECUTABLE }
133
+ ${Python_EXECUTABLE }
138
134
${CMAKE_CURRENT_SOURCE_DIR} /utils/update_build_version.py
139
135
${shaderc_SOURCE_DIR} ${spirv-tools_SOURCE_DIR} ${glslang_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} /build -version .inc
140
136
COMMENT "Update build-version.inc in the Shaderc build directory (if necessary)." )
Original file line number Diff line number Diff line change @@ -49,11 +49,7 @@ if (ANDROID)
49
49
find_host_package(PythonInterp 3 REQUIRED)
50
50
find_host_package(BISON)
51
51
else ()
52
- if (${CMAKE_VERSION} VERSION_LESS_EQUAL "3.12" )
53
- find_package (PythonInterp 3 REQUIRED)
54
- else ()
55
- find_package (Python COMPONENTS Interpreter REQUIRED)
56
- endif ()
52
+ find_package (Python COMPONENTS Interpreter REQUIRED)
57
53
endif ()
58
54
59
55
option (DISABLE_RTTI "Disable RTTI in builds" )
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
add_test (NAME shaderc_expect_unittests
16
- COMMAND ${PYTHON_EXECUTABLE } -m unittest expect_unittest.py
16
+ COMMAND ${Python_EXECUTABLE } -m unittest expect_unittest.py
17
17
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
18
18
add_test (NAME shaderc_glslc_test_framework_unittests
19
- COMMAND ${PYTHON_EXECUTABLE } -m unittest glslc_test_framework_unittest.py
19
+ COMMAND ${Python_EXECUTABLE } -m unittest glslc_test_framework_unittest.py
20
20
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
21
21
22
22
if (${SHADERC_ENABLE_TESTS} )
23
23
add_test (NAME glslc_tests
24
- COMMAND ${PYTHON_EXECUTABLE }
24
+ COMMAND ${Python_EXECUTABLE }
25
25
${CMAKE_CURRENT_SOURCE_DIR} /glslc_test_framework.py
26
26
$<TARGET_FILE:glslc_exe> $<TARGET_FILE:spirv-dis>
27
27
--test -dir ${CMAKE_CURRENT_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments