Re: [CMake] The C compiler "/usr/bin/cc" is not able to compile a simple test program.

2017-07-29 Thread jupiter
I thought if I add -DCMAKE_CC_COMPILER=gcc that error should go, no, it still compile with the specific default cc: /usr/bin/cc How could I fix it? Thank you. On Sun, Jul 30, 2017 at 11:51 AM, jupiter wrote: > Hi, > > How can I set up the cmake not to check /usr/bin/cc but to check $CC >

[CMake] The C compiler "/usr/bin/cc" is not able to compile a simple test program.

2017-07-29 Thread jupiter
Hi, How can I set up the cmake not to check /usr/bin/cc but to check $CC (which link to gcc without hard corded path in the environment)? Thank you. Regards -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware of

[CMake] setting PYTHONPATH for test

2017-07-29 Thread Kris Thielemans
Hi I'm trying to add to the PYTHONPATH for a test that uses Python. I do that using set_test_properties. When using the makefile generator, I need to add ${CMAKE_CURRENT_BINARY_DIR}. However, for Visual Studio I also need to add for instance ${CMAKE_CURRENT_BINARY_DIR}/Release. My current CMak

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Brian J. Davis
With simple stand alone cmake 3.9 project using cmake_minimum_required(VERSION 3.9) project(cmake_testing CXX CUDA) I can get a simple app to compile. It however fails to run with: GPU Device 0: "GeForce GTX 960M" with compute capability 5.0 Current device is [0] Current device is [0] CUDA e

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Brian J. Davis
@Robert I created a fresh simple cmake project in 3.9. This appeared to find CUDA 8.0 successfully so it may have something do with my other project settings that I am trying to get to work with 3.9, VS13, CUDA 7.5/8.0. Using: message( CUDACXX = ${CUDACXX}) message( CMAKE_CUDA_COMPILER = ${

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Robert Maynard
Hi, Can you please provide run from the build directory cmake --system-information and send the resulting file? That will help me track down why CUDA is failing for you. On Fri, Jul 28, 2017 at 8:40 PM, Brian J. Davis wrote: > > @Robert > > Adding CUDA to my PROJECT(4DRTProto CXX CUDA) > > Yiel

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Robert Maynard
The way to control which CUDA version to use is by setting the CUDACXX environment variable, or by setting the CMAKE_CUDA_COMPILER cache variable. To specify which CUDA compilation language you want 98/11/14 you can use any of methods that are possible by compile features ( https://cmake.org/cmake

[CMake] ExternalProject_Add fails with gcc-4.9.3

2017-07-29 Thread T.Sariyski
cmake version 3.4.3 Hi, I have ExternalProject_Add (attached), which works with gcc-4.4.7, but fails with gcc-4.9.3: ... ... [100%] Performing build step for 'ep_netcdf' CMake Error at /scratch/tesari/build/cee/gnu.dbg/netcdf/src/ep_netcdf-stamp/ep_netcdf-build -DEBUG.cmake:16 (message):