Skip to content

Commit c3dae0e

Browse files
committed
Lint
1 parent 1bbc5c0 commit c3dae0e

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

backends/qualcomm/CMakeLists.txt

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@ if(CMAKE_TOOLCHAIN_FILE MATCHES ".*(iOS|ios\.toolchain)\.cmake$")
2828
endif()
2929

3030
set(_qnn_host_is_linux_x86 FALSE)
31-
if(CMAKE_SYSTEM_NAME STREQUAL "Linux"
32-
AND CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|amd64|i.86)$")
31+
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR MATCHES
32+
"^(x86_64|amd64|i.86)$"
33+
)
3334
set(_qnn_host_is_linux_x86 TRUE)
3435
endif()
3536

3637
if(NOT DEFINED QNN_SDK_ROOT)
3738
if(_qnn_host_is_linux_x86)
38-
find_package(Python3 COMPONENTS Interpreter REQUIRED)
39+
find_package(
40+
Python3
41+
COMPONENTS Interpreter
42+
REQUIRED
43+
)
3944
message(STATUS "QNN_SDK_ROOT not provided, downloading Qualcomm SDK")
4045
execute_process(
4146
COMMAND
@@ -48,18 +53,18 @@ if(NOT DEFINED QNN_SDK_ROOT)
4853
ERROR_VARIABLE _qnn_sdk_download_error
4954
OUTPUT_STRIP_TRAILING_WHITESPACE
5055
)
51-
if(NOT _qnn_sdk_download_result EQUAL 0
52-
OR _qnn_sdk_download_output STREQUAL "")
56+
if(NOT _qnn_sdk_download_result EQUAL 0 OR _qnn_sdk_download_output
57+
STREQUAL ""
58+
)
5359
message(
5460
FATAL_ERROR
5561
"Failed to download Qualcomm SDK. stdout: ${_qnn_sdk_download_output}\n"
5662
"stderr: ${_qnn_sdk_download_error}"
5763
)
5864
endif()
59-
set(
60-
QNN_SDK_ROOT
61-
${_qnn_sdk_download_output}
62-
CACHE PATH "Qualcomm SDK root directory" FORCE
65+
set(QNN_SDK_ROOT
66+
${_qnn_sdk_download_output}
67+
CACHE PATH "Qualcomm SDK root directory" FORCE
6368
)
6469
else()
6570
message(
@@ -318,7 +323,9 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
318323

319324
install(
320325
TARGETS PyQnnManagerAdaptor PyQnnWrapperAdaptor
321-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/executorch/backends/qualcomm/python
322-
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/executorch/backends/qualcomm/python
326+
LIBRARY
327+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/executorch/backends/qualcomm/python
328+
RUNTIME
329+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/executorch/backends/qualcomm/python
323330
)
324331
endif()

0 commit comments

Comments
 (0)