summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-31 14:04:26 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-31 14:04:26 (GMT)
commit5efb8b9a5df82fef0b6abac11f590f2a655c184e (patch)
tree5fe68f875ff626874ab30a95aa5825728a6c33e1
parent2e2c92edb03a28ccc6b0755410e58125a472aa52 (diff)
parent435cebaaa1663274cbe43c19cb8244011b6d1384 (diff)
downloadCMake-5efb8b9a5df82fef0b6abac11f590f2a655c184e.zip
CMake-5efb8b9a5df82fef0b6abac11f590f2a655c184e.tar.gz
CMake-5efb8b9a5df82fef0b6abac11f590f2a655c184e.tar.bz2
Merge topic 'CSharpVS2017'
435cebaa VS: Fix CSharp compiler identification for VS 2017
-rw-r--r--Modules/CompilerId/VS-10.csproj.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/CompilerId/VS-10.csproj.in b/Modules/CompilerId/VS-10.csproj.in
index 833dca7..ed5e847 100644
--- a/Modules/CompilerId/VS-10.csproj.in
+++ b/Modules/CompilerId/VS-10.csproj.in
@@ -47,9 +47,9 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
- <PostBuildEvent>cd /D &quot;$(MSBuildToolsPath)&quot;
-if not %errorlevel%==0 exit -1
-if not exist @id_cl@ exit -2
-%40echo CMAKE_@id_lang@_COMPILER=$(MSBuildToolsPath)\@id_cl@</PostBuildEvent>
+ <PostBuildEvent>if not "$(RoslynTargetsPath)"=="" if exist "$(RoslynTargetsPath)\@id_cl@" set _CSC=$(RoslynTargetsPath)
+if exist "$(MSBuildToolsPath)\@id_cl@" set _CSC=$(MSBuildToolsPath)
+if "%_CSC%"=="" exit -1
+%40echo CMAKE_@id_lang@_COMPILER=%_CSC%\@id_cl@</PostBuildEvent>
</PropertyGroup>
</Project>