Skip to content

Commit 6f38f07

Browse files
committed
Fix native build in latest VS / CMake
1 parent acd0503 commit 6f38f07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Native/LibTorchSharp/CMakeLists.txt

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

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

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

0 commit comments

Comments
 (0)