We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554c653 commit 3f8d389Copy full SHA for 3f8d389
1 file changed
CMakeLists.txt
@@ -698,8 +698,9 @@ ExternalProject_Add(TorchExternal
698
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/Torch
699
)
700
ExternalProject_Get_Property(TorchExternal install_dir)
701
-if (MSVC)
702
- set(TORCH_EXECUTABLE ${install_dir}/src/TorchExternal-build/$<CONFIGURATION>/torch)
+get_property(_is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
+if (_is_multi_config)
703
+ set(TORCH_EXECUTABLE ${install_dir}/src/TorchExternal-build/$<CONFIG>/torch)
704
else()
705
set(TORCH_EXECUTABLE ${install_dir}/src/TorchExternal-build/torch)
706
endif()
0 commit comments