Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit d773a7b

Browse files
committed
Report an error when computecpp_info or compute++ can't be found (#126)
1 parent af35e0c commit d773a7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/Modules/FindComputeCpp.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,16 @@ endif()
7979
find_program(ComputeCpp_DEVICE_COMPILER_EXECUTABLE compute++
8080
HINTS ${computecpp_host_find_hint}
8181
PATH_SUFFIXES bin)
82+
if(NOT ComputeCpp_DEVICE_COMPILER_EXECUTABLE)
83+
message(FATAL_ERROR "Could not find compute++.")
84+
endif()
8285

8386
find_program(ComputeCpp_INFO_EXECUTABLE computecpp_info
8487
HINTS ${computecpp_host_find_hint}
8588
PATH_SUFFIXES bin)
89+
if(NOT ComputeCpp_INFO_EXECUTABLE)
90+
message(FATAL_ERROR "Could not find computecpp_info.")
91+
endif()
8692

8793
find_library(COMPUTECPP_RUNTIME_LIBRARY
8894
NAMES ComputeCpp ComputeCpp_vs2015

0 commit comments

Comments
 (0)