Skip to content

Commit eb4bd4a

Browse files
authored
Protection against missing LITTLEFS_PATH (#3015)
***NO_CI***
1 parent 85d3343 commit eb4bd4a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

targets/netcore/littlefs/littlefs.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,7 @@
161161
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
162162
<ImportGroup Label="ExtensionTargets">
163163
</ImportGroup>
164+
<Target Name="LITTLEFS_PATH_verification" Condition=" '$(LITTLEFS_PATH)' == '' " BeforeTargets="ClCompile">
165+
<Error Text="Assign the path of a clone of the littlefs repository to the LITTLEFS_PATH environment variable."/>
166+
</Target>
164167
</Project>

targets/netcore/nanoFramework.nanoCLR/nanoFramework.nanoCLR.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,7 @@
330330
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
331331
<ImportGroup Label="ExtensionTargets">
332332
</ImportGroup>
333+
<Target Name="LITTLEFS_PATH_verification" Condition=" '$(LITTLEFS_PATH)' == '' " BeforeTargets="ClCompile">
334+
<Error Text="Assign the path of a clone of the littlefs repository to the LITTLEFS_PATH environment variable."/>
335+
</Target>
333336
</Project>

0 commit comments

Comments
 (0)