File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,18 @@ function(make_torchcodec_sublibrary
4646 # Avoid adding the "lib" prefix which we already add explicitly.
4747 set_target_properties (${library_name} PROPERTIES PREFIX "" )
4848
49+ # On Windows, avoid the Release/Debug subdirectories in output
50+ if (WIN32 )
51+ set_target_properties (${library_name} PROPERTIES
52+ RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_BINARY_DIR }
53+ RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR }
54+ LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_BINARY_DIR }
55+ LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR }
56+ ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_BINARY_DIR }
57+ ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR }
58+ )
59+ endif ()
60+
4961 target_link_libraries (
5062 ${library_name}
5163 PUBLIC
You can’t perform that action at this time.
0 commit comments