Skip to content

Commit 197ac93

Browse files
jingxu10EikanWang
authored andcommitted
fix a print bug with FindIPEX.cmake.in if ipex so file is not found (#361)
1 parent d390431 commit 197ac93

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmake/Modules/FindIPEX.cmake.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ FIND_LIBRARY(INTEL_EXT_PT_CPU_LIBRARY libintel-ext-pt-cpu.so PATHS "${TORCH_INST
1313
if(INTEL_EXT_PT_CPU_LIBRARY)
1414
LIST(APPEND TORCH_LIBRARIES ${INTEL_EXT_PT_CPU_LIBRARY})
1515
SET(TORCH_CXX_FLAGS "${TORCH_CXX_FLAGS} -Wl,--no-as-needed")
16-
endif()
1716

18-
SET(INTEL_EXT_PT_CPU_FOUND TRUE)
19-
MESSAGE(STATUS "Found INTEL_EXT_PT_CPU: TRUE")
17+
SET(INTEL_EXT_PT_CPU_FOUND TRUE)
18+
MESSAGE(STATUS "Found INTEL_EXT_PT_CPU: TRUE")
19+
else()
20+
MESSAGE(STATUS "Found INTEL_EXT_PT_CPU: FALSE")
21+
endif()
2022

2123
ENDIF(NOT INTEL_EXT_PT_CPU_FOUND)

0 commit comments

Comments
 (0)