Improve messages generated by cmake

This commit is contained in:
Davis King 2015-10-21 06:29:01 -04:00
parent c49631ddcf
commit beee49530a
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ if (NOT TARGET dlib)
endif() endif()
mark_as_advanced(cudnn cudnn_include) mark_as_advanced(cudnn cudnn_include)
if (cudnn) if (cudnn AND NOT DEFINED cuda_test_compile_worked)
# make sure cuda is really working by doing a test compile # make sure cuda is really working by doing a test compile
message(STATUS "Building a CUDA test project to see if your compiler is compatible with CUDA...") message(STATUS "Building a CUDA test project to see if your compiler is compatible with CUDA...")
try_compile(cuda_test_compile_worked ${PROJECT_BINARY_DIR}/cuda_test_build try_compile(cuda_test_compile_worked ${PROJECT_BINARY_DIR}/cuda_test_build