diff options
author | Brad King <brad.king@kitware.com> | 2017-01-16 20:21:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-10 15:19:54 (GMT) |
commit | a650dbb280859bdbadb9a7bba5636955190ec18a (patch) | |
tree | f5fcd248462a06a1c54339be44c5ecf0dc285e0f /Modules/CompilerId | |
parent | 62b308515abe01fbe03ce0e1c7fee4879ca665b1 (diff) | |
download | CMake-a650dbb280859bdbadb9a7bba5636955190ec18a.zip CMake-a650dbb280859bdbadb9a7bba5636955190ec18a.tar.gz CMake-a650dbb280859bdbadb9a7bba5636955190ec18a.tar.bz2 |
VS: Refactor compiler id detection project file template
Make the `ClCompile` element name and `PostBuildEvent/Command` value
configurable. Move the current content into default values for the
corresponding variables.
Diffstat (limited to 'Modules/CompilerId')
-rw-r--r-- | Modules/CompilerId/VS-10.vcxproj.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CompilerId/VS-10.vcxproj.in b/Modules/CompilerId/VS-10.vcxproj.in index 50be9cb..a900482 100644 --- a/Modules/CompilerId/VS-10.vcxproj.in +++ b/Modules/CompilerId/VS-10.vcxproj.in @@ -49,11 +49,11 @@ <SubSystem>Console</SubSystem> </Link> <PostBuildEvent> - <Command>for %%i in (@id_cl@) do %40echo CMAKE_@id_lang@_COMPILER=%%~$PATH:i</Command> + <Command>@id_PostBuildEvent_Command@</Command> </PostBuildEvent> </ItemDefinitionGroup> <ItemGroup> - <ClCompile Include="@id_src@" /> + <@id_compile@ Include="@id_src@" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> </Project> |