diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a3191834b99d18cc2c067b8ecfd0add06410cc8..c8e601297012bbab6fc5b061687b651d2f35e666 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,7 +231,8 @@ if (CMAKE_CUDA_COMPILER) find_program (BIN2C NAMES bin2c PATHS ${cuda_compiler_bin} - DOC "Path to the CUDA SDK bin2c executable.") + DOC "Path to the CUDA SDK bin2c executable." + NO_DEFAULT_PATH) if (NOT BIN2C) message (FATAL_ERROR "bin2c not found:\n"