Skip to content

Commit a17b59b

Browse files
authored
Fix find_package(executorch) failure (#6581)
Need to check `SYSCONFIG_RESULT` instead of `SYSCONFIG_ERROR`.
1 parent f813b6a commit a17b59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/executorch-wheel-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ execute_process(
4444
OUTPUT_STRIP_TRAILING_WHITESPACE
4545
)
4646

47-
if(RESULT_VARIABLE EQUAL 0)
47+
if(SYSCONFIG_RESULT EQUAL 0)
4848
message(STATUS "Sysconfig extension suffix: ${EXT_SUFFIX}")
4949
else()
5050
message(FATAL_ERROR "Failed to retrieve sysconfig config var EXT_SUFFIX: ${SYSCONFIG_ERROR}")

0 commit comments

Comments
 (0)