File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if(WIN32)
41
41
set (CMAKE_LINKER:PATH "${DPCPP_ROOT} /bin/lld-link" )
42
42
message (STATUS "Resetting CXX compiler to: " ${CMAKE_CXX_COMPILER} )
43
43
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 } )
45
45
set (WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations" )
46
46
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} " )
47
47
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} -Qstd=c++17" )
@@ -108,10 +108,8 @@ if(DPCTL_ENABLE_LO_PROGRAM_CREATION)
108
108
endif ()
109
109
110
110
install (
111
- TARGETS
112
- DPCTLSyclInterface
113
- LIBRARY DESTINATION
114
- "${CMAKE_INSTALL_PREFIX} /lib/"
111
+ TARGETS DPCTLSyclInterface
112
+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX} /lib/
115
113
)
116
114
117
115
# Install all headers
Original file line number Diff line number Diff line change @@ -100,12 +100,14 @@ if(${dpcpp_result} MATCHES "0")
100
100
set (DPCPP_SYCL_LIBRARY ${DPCPP_INSTALL_DIR} /lib/libsycl.so)
101
101
set (DPCPP_OPENCL_LIBRARY ${DPCPP_INSTALL_DIR} /lib/libOpenCL.so)
102
102
endif ()
103
+ set (DPCPP_FOUND TRUE )
103
104
else ()
104
105
message (STATUS "DPCPP needed to build dpctl_sycl_interface" )
105
106
return ()
106
107
endif ()
107
108
108
109
find_package_handle_standard_args(DPCPP DEFAULT_MSG
110
+ DPCPP_FOUND
109
111
DPCPP_VERSION
110
112
DPCPP_INCLUDE_DIR
111
113
DPCPP_SYCL_INCLUDE_DIR
You can’t perform that action at this time.
0 commit comments