Skip to content

Commit d7b09e5

Browse files
author
Niklas Gustafsson
committed
Merge branch 'main' into unit
2 parents e4b530c + 92347b2 commit d7b09e5

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<!-- we manually update these -->
8888
<PropertyGroup Condition="'$(MSBuildProjectName.IndexOf(`libtorch-`))' != '-1'">
8989
<LibTorchPackageVersion>2.2.1.1</LibTorchPackageVersion>
90+
<PreviousPackageVersion>2.2.1.1</PreviousPackageVersion>
9091
<VersionPrefix>$(LibTorchPackageVersion)</VersionPrefix>
9192
<VersionSuffix></VersionSuffix>
9293
</PropertyGroup>

build/BranchInfo.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<MajorVersion>0</MajorVersion>
44
<MinorVersion>102</MinorVersion>
55
<PatchVersion>7</PatchVersion>
6+
<PreviousPackageVersion>0.102.6</PreviousPackageVersion>
67
</PropertyGroup>
78

89
</Project>

pkg/Directory.Build.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<Import Project="..\Directory.Build.targets" />
3+
4+
<PropertyGroup Condition="'$(IsPackable)' != 'false'">
5+
<EnablePackageValidation>true</EnablePackageValidation>
6+
<PackageValidationBaselineVersion>$(PreviousPackageVersion)</PackageValidationBaselineVersion>
7+
</PropertyGroup>
8+
</Project>

src/Native/LibTorchSharp/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ if(APPLE)
7878
set_target_properties(LibTorchSharp PROPERTIES INSTALL_RPATH "@loader_path;@executable_path;")
7979
endif()
8080

81-
if(NOT WIN32)
82-
# Set C++ standard
83-
set_target_properties(LibTorchSharp PROPERTIES
84-
CXX_STANDARD 17
85-
CXX_STANDARD_REQUIRED ON
86-
)
81+
# Set C++ standard
82+
set_target_properties(LibTorchSharp PROPERTIES
83+
CXX_STANDARD 17
84+
CXX_STANDARD_REQUIRED ON
85+
)
8786

87+
if(NOT WIN32)
8888
# Add C++ specific compile options
8989
target_compile_options(LibTorchSharp PRIVATE
9090
$<$<COMPILE_LANGUAGE:CXX>:-std=c++17>

0 commit comments

Comments
 (0)