Skip to content

Commit

Permalink
Use .vcxproj generator?
Browse files Browse the repository at this point in the history
Is `cl` in path (6da1e49)?  ***NO***.

Furthermore, based on the sample docs:

  * https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/windows/cpp?view=azure-devops
  * https://github.com/adventworks/cpp-sample/tree/master/cpp-sample

The sample doesn't invoke `cl` directly.  It uses a `.vcxproj`.

Let's Try That?

Update `cmake` to emit a `.vcxproj` file.  Let's see where *that* leads.
  • Loading branch information
jonpryor committed Mar 5, 2021
1 parent 6da1e49 commit ebb3516
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/NativeTiming/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,10 @@
<_Cc Condition=" '$(_ClPath)' != '' " >"-DCMAKE_C_COMPILER=$(_ClPath)"</_Cc>
-->
<_CmakeGenerator Condition=" '$(OS)' != 'Windows_NT' ">-G "Unix Makefiles"</_CmakeGenerator>
<!--
<_CmakeGenerator Condition=" '$(OS)' == 'Windows_NT' ">-G "NMake Makefiles"</_CmakeGenerator>
-->
</PropertyGroup>
<!-- does `cl` work? is it in %PATH%? -->
<Exec
Condition=" '$(OS)' == 'Windows_NT' "
ContinueOnError="WarnAndContinue"
Command="cl /?"
/>
<Exec
ContinueOnError="WarnAndContinue"
Command="$(CmakePath) $(_CmakeGenerator) -S . -B $(IntermediateOutputPath) $(_JdkDirs) $(_Cc)"
Expand Down

0 comments on commit ebb3516

Please sign in to comment.