Commit 31c26d49 authored by Wieland Morgenstern's avatar Wieland Morgenstern

don't trigger FATAL_ERROR on CUDA_LOCAL_ARCH_ONLY on empty but existing QUERY_CUDA_ERR

parent 0e3ba164
......@@ -21,9 +21,9 @@ if(CUDA_LOCAL_ARCH_ONLY)
OUTPUT_VARIABLE QUERY_CUDA_OUT
ERROR_VARIABLE QUERY_CUDA_ERR)
if((QUERY_CUDA_EXIT EQUAL 1) OR QUERY_CUDA_ERR)
if((QUERY_CUDA_EXIT EQUAL 1) OR ${QUERY_CUDA_ERR})
message(FATAL_ERROR "Query for CUDA_LOCAL_ARCH_ONLY failed with message: ${QUERY_CUDA_OUT}\n${QUERY_CUDA_ERR}")
endif((QUERY_CUDA_EXIT EQUAL 1) OR QUERY_CUDA_ERR)
endif()
# try out these settings with nvcc
execute_process(COMMAND ${NVCC} --run cmake/configuration/helloWorld.cu ${CUDA_LOCAL_ARCH_FLAGS} --output-file ${CMAKE_CURRENT_BINARY_DIR}/testCUDACompilationFlags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment