Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-26 Thread Brad King
On 06/23/2017 07:40 AM, Hancox, James wrote: > a semicolon is incorrectly added when -Xcompiler is appended > to AdditionalOptions: Thanks for trying it! This has also been reported here: https://gitlab.kitware.com/cmake/cmake/issues/17008 Follow that for progress. Thanks, -Brad --

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-23 Thread Hancox, James
Hi Brad, I picked up rc4 (since according to the release notes it has your changes merged in) and tried it out. Sadly I'm still running into problems! It looks like a semicolon is incorrectly added when -Xcompiler is appended to AdditionalOptions: -lineinfo;-Xcompiler="/bigobj -Zi -Ob1" This

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-22 Thread Brad King
On 06/22/2017 07:32 AM, Hancox, James wrote: > That's great news! I'll definitely try that out in the next RC. It should be in a nightly binary from here: https://cmake.org/files/dev/?C=M;O=D The cmake-3.9.20170621-g87dac-win64-x64.zip file should have it and can be extracted and used without

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-22 Thread Hancox, James
That's great news! I'll definitely try that out in the next RC. Thanks again for looking into this so quickly. James -Original Message- From: Brad King [mailto:brad.k...@kitware.com] Sent: 21 June 2017 19:30 To: Hancox, James Cc: cmake@cmake.org; Robert Maynard

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-21 Thread Brad King
On 06/21/2017 12:04 PM, Hancox, James wrote: > Sadly it's a bit of a showstopper right now I found a better workaround that can preserve -Xcompiler flags. Please see the MR here: https://gitlab.kitware.com/cmake/cmake/merge_requests/996 -Brad -- Powered by www.kitware.com Please keep

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-21 Thread Hancox, James
Hi Brad, Thanks for the information, that makes a lot of sense. Here's hoping that CUDA 9 fixes the problem! Sadly it's a bit of a showstopper right now, but I'll be sure to try this again in a future version. Cheers, James -Original Message- From: Brad King

Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?

2017-06-21 Thread Brad King
On 06/21/2017 09:08 AM, Hancox, James wrote: > it almost seems like -Xcompiler flags are being deliberately stripped out.) Unfortunately we have to strip them out to work around a bug in CUDA's VS integration. The -Xcompiler options are parsed for inclusion in AdditionalCompilerOptions in the