at master 1.4 kB view raw
1From e8b910246d0c7c3d9fff994f71c6f8a48ec09a50 Mon Sep 17 00:00:00 2001 2From: Tristan Ross <tristan.ross@midstall.com> 3Date: Sat, 24 Aug 2024 19:56:24 -0700 4Subject: [PATCH] [libclc] use default paths with find_program when possible 5 6--- 7 libclc/CMakeLists.txt | 4 ++-- 8 1 file changed, 2 insertions(+), 2 deletions(-) 9 10diff --git a/CMakeLists.txt b/CMakeLists.txt 11index 02bb859ae8590b..6bcd8ae52a5794 100644 12--- a/CMakeLists.txt 13+++ b/CMakeLists.txt 14@@ -55,7 +55,7 @@ if( LIBCLC_STANDALONE_BUILD OR CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DI 15 # Import required tools 16 if( NOT EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} ) 17 foreach( tool IN ITEMS clang llvm-as llvm-link opt ) 18- find_program( LLVM_TOOL_${tool} ${tool} PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH ) 19+ find_program( LLVM_TOOL_${tool} ${tool} PATHS ${LLVM_TOOLS_BINARY_DIR} ) 20 set( ${tool}_exe ${LLVM_TOOL_${tool}} ) 21 set( ${tool}_target ) 22 endforeach() 23@@ -104,7 +104,7 @@ foreach( tool IN ITEMS clang opt llvm-as llvm-link ) 24 endforeach() 25 26 # llvm-spirv is an optional dependency, used to build spirv-* targets. 27-find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH ) 28+find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} ) 29 30 if( LLVM_SPIRV ) 31 add_executable( libclc::llvm-spirv IMPORTED GLOBAL )