The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14971 
====================================================================== 
Reported By:                Adam Strzelecki
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14971
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-06-12 13:54 EDT
Last Modified:              2014-06-12 13:54 EDT
====================================================================== 
Summary:                    FindCUDA causes error with default Clang
installation on OSX 10.9.3 (w/patch)
Description: 
Please find attached patch for bug fix.

Consider following examples:

CMakeLists.txt
==============
cmake_minimum_required(VERSION 2.6)
project(TestCUDA CXX)
find_package(CUDA)
cuda_add_executable(test_cuda test_cuda.cu)

test_cuda.cu
============
int main(int argc, char const *argv[]) { return 0; }


Now running on my Mac with OSX 10.9.3 I get:

[1/2] Building NVCC (Device) object
CMakeFiles/test_cuda.dir//./test_cuda_generated_test_cuda.cu.o
FAILED: cd /tmp/cuda/CMakeFiles/test_cuda.dir &&
/Applications/CMake.app/Contents/bin/cmake -E make_directory
/tmp/cuda/CMakeFiles/test_cuda.dir//. &&
/Applications/CMake.app/Contents/bin/cmake -D verbose:BOOL=OFF -D
build_configuration:STRING= -D
generated_file:STRING=/tmp/cuda/CMakeFiles/test_cuda.dir//./test_cuda_generated_test_cuda.cu.o
-D
generated_cubin_file:STRING=/tmp/cuda/CMakeFiles/test_cuda.dir//./test_cuda_generated_test_cuda.cu.o.cubin.txt
-P /tmp/cuda/CMakeFiles/test_cuda.dir//test_cuda_generated_test_cuda.cu.o.cmake
nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and
may be removed in a future release.
-m64: No such file or directory
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-06-12 13:54 Adam StrzeleckiNew Issue                                    
2014-06-12 13:54 Adam StrzeleckiFile Added:
0001-FindCUDA-Fix-compilation-with-Clang-on-OSX.patch                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to