@@ -5,9 +5,9 @@ find_package(Vulkan COMPONENTS glslc REQUIRED)
55
66function (detect_host_compiler)
77 if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" )
8- find_program (MSVC_COMPILER cl )
9- find_program (GNU_C_COMPILER gcc)
10- find_program (GNU_CXX_COMPILER g++)
8+ find_program (MSVC_COMPILER cl NO_CMAKE_FIND_ROOT_PATH )
9+ find_program (GNU_C_COMPILER gcc NO_CMAKE_FIND_ROOT_PATH )
10+ find_program (GNU_CXX_COMPILER g++ NO_CMAKE_FIND_ROOT_PATH )
1111 if (MSVC_COMPILER)
1212 set (HOST_C_COMPILER "${MSVC_COMPILER} " PARENT_SCOPE)
1313 set (HOST_CXX_COMPILER "${MSVC_COMPILER} " PARENT_SCOPE)
@@ -18,10 +18,10 @@ function(detect_host_compiler)
1818 message (WARNING "Neither MSVC nor clang found" )
1919 endif ()
2020 else ()
21- find_program (CLANG_C_COMPILER clang)
22- find_program (CLANG_CXX_COMPILER clang++)
23- find_program (GNU_C_COMPILER gcc)
24- find_program (GNU_CXX_COMPILER g++)
21+ find_program (CLANG_C_COMPILER clang NO_CMAKE_FIND_ROOT_PATH )
22+ find_program (CLANG_CXX_COMPILER clang++ NO_CMAKE_FIND_ROOT_PATH )
23+ find_program (GNU_C_COMPILER gcc NO_CMAKE_FIND_ROOT_PATH )
24+ find_program (GNU_CXX_COMPILER g++ NO_CMAKE_FIND_ROOT_PATH )
2525 if (GNU_C_COMPILER AND GNU_CXX_COMPILER)
2626 set (HOST_C_COMPILER "${GNU_C_COMPILER} " PARENT_SCOPE)
2727 set (HOST_CXX_COMPILER "${GNU_CXX_COMPILER} " PARENT_SCOPE)
0 commit comments