Skip to content

Commit 10238b0

Browse files
author
Diptorup Deb
committed
Fix typo and set the DPCPP_FOUND variable in FindDPCPP.cmake.
1 parent f385dea commit 10238b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dpctl-capi/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if(WIN32)
4141
set(CMAKE_LINKER:PATH "${DPCPP_ROOT}/bin/lld-link")
4242
message(STATUS "Resetting CXX compiler to: " ${CMAKE_CXX_COMPILER})
4343
message(STATUS "Resetting C compiler to: " ${CMAKE_C_COMPILER})
44-
message(STATUS "Resetting Linker to: " ${CMAKE_LINK})
44+
message(STATUS "Resetting Linker to: " ${CMAKE_LINKER})
4545
set(WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations")
4646
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS}")
4747
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} -Qstd=c++17")
@@ -108,10 +108,8 @@ if(DPCTL_ENABLE_LO_PROGRAM_CREATION)
108108
endif()
109109

110110
install(
111-
TARGETS
112-
DPCTLSyclInterface
113-
LIBRARY DESTINATION
114-
"${CMAKE_INSTALL_PREFIX}/lib/"
111+
TARGETS DPCTLSyclInterface
112+
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/
115113
)
116114

117115
# Install all headers

dpctl-capi/cmake/modules/FindDPCPP.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@ if(${dpcpp_result} MATCHES "0")
100100
set(DPCPP_SYCL_LIBRARY ${DPCPP_INSTALL_DIR}/lib/libsycl.so)
101101
set(DPCPP_OPENCL_LIBRARY ${DPCPP_INSTALL_DIR}/lib/libOpenCL.so)
102102
endif()
103+
set(DPCPP_FOUND TRUE)
103104
else()
104105
message(STATUS "DPCPP needed to build dpctl_sycl_interface")
105106
return()
106107
endif()
107108

108109
find_package_handle_standard_args(DPCPP DEFAULT_MSG
110+
DPCPP_FOUND
109111
DPCPP_VERSION
110112
DPCPP_INCLUDE_DIR
111113
DPCPP_SYCL_INCLUDE_DIR

0 commit comments

Comments
 (0)