We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6e311 commit 967fa92Copy full SHA for 967fa92
CMakeLists.txt
@@ -228,9 +228,15 @@ function(glslang_set_link_args TARGET)
228
endif()
229
endfunction(glslang_set_link_args)
230
231
+if(NOT COMMAND find_host_package)
232
+ macro(find_host_package)
233
+ find_package(${ARGN})
234
+ endmacro()
235
+endif()
236
+
237
# CMake needs to find the right version of python, right from the beginning,
238
# otherwise, it will find the wrong version and fail later
-find_package(PythonInterp 3 REQUIRED)
239
+find_host_package(PythonInterp 3 REQUIRED)
240
241
# Root directory for build-time generated include files
242
set(GLSLANG_GENERATED_INCLUDEDIR "${CMAKE_BINARY_DIR}/include")
0 commit comments