[CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?
Hancox, James
JHancox at tmvse.com
Fri Jun 23 07:40:36 EDT 2017
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:
<AdditionalOptions>-lineinfo;-Xcompiler="/bigobj -Zi -Ob1"</AdditionalOptions>
This causes MSBuild to fail with the following error message:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 8.0.targets(635,9): error MSB5016: The name "-Xcompiler" contains an invalid character "-". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 8.0.targets
I tried manually replacing the semicolon with a space, and this fixes the issue for me (and -Xcompiler is passed through as expected).
I've created a minimal test case to reproduce the error, and put it on Github at https://github.com/jameshancox/cmake_example_xcompiler , hope it helps.
Cheers,
James
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: 22 June 2017 15:06
To: Hancox, James <JHancox at tmvse.com>
Cc: cmake at cmake.org; Robert Maynard <robert.maynard at kitware.com>
Subject: Re: [CMake] No mechanism to set -Xcompiler options with Visual Studio CUDA integration?
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 installing.
-Brad
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
More information about the CMake
mailing list