[CMake] Question regarding CUDA support in CMake 3.8.0-rc2

2017-03-15 Thread Nick Henderson
Hello! I am testing out the CUDA support in CMake 3.8.0-rc2. When running `make VERBOSE=1` in the build directory, I get a warning generated related to the GPU architecture flags for nvcc: ``` [ 80%] Linking CUDA device code /home/nwh/git/foobar/build/exec/CMakeFiles/exec.dir/cmake_device_link.o

Re: [CMake] CHECK_INCLUDE_FILE_CXX with built from source compiler

2017-03-15 Thread houssen
For the record, the solution is (try_compile needs this option): SET(CMAKE_REQUIRED_FLAGS "-std=c++11") Is there a way to get this flag whatever the compiler to do this ? [SET_TARGET_PROPERTIES(myTarget PROPERTIES CXX_STANDARD 11) seems to be relevant only for target - flags are not available]