Skip to content

Commit 056e0f9

Browse files
[libclc] use default paths with find_program when possible
1 parent 095b41c commit 056e0f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libclc/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if( LIBCLC_STANDALONE_BUILD OR CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DI
5555
# Import required tools
5656
if( NOT EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} )
5757
foreach( tool IN ITEMS clang llvm-as llvm-link opt )
58-
find_program( LLVM_TOOL_${tool} ${tool} PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
58+
find_program( LLVM_TOOL_${tool} ${tool} PATHS ${LLVM_TOOLS_BINARY_DIR} )
5959
set( ${tool}_exe ${LLVM_TOOL_${tool}} )
6060
set( ${tool}_target )
6161
endforeach()
@@ -91,7 +91,7 @@ if( EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} )
9191
# and custom tools.
9292
foreach( tool IN ITEMS clang llvm-as llvm-link opt )
9393
find_program( LLVM_CUSTOM_TOOL_${tool} ${tool}
94-
PATHS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
94+
PATHS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} )
9595
set( ${tool}_exe ${LLVM_CUSTOM_TOOL_${tool}} )
9696
set( ${tool}_target )
9797
endforeach()
@@ -108,7 +108,7 @@ endforeach()
108108
if( TARGET llvm-spirv )
109109
get_host_tool_path( llvm-spirv LLVM_SPIRV llvm-spirv_exe llvm-spirv_target )
110110
else()
111-
find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
111+
find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} )
112112
set( llvm-spirv_exe "${LLVM_SPIRV}" )
113113
set( llvm-spirv_target )
114114
endif()

0 commit comments

Comments
 (0)