File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -332,17 +332,11 @@ endforeach()
332
332
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
333
333
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
334
334
set (CMAKE_UMF_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
335
- if (MSVC )
335
+ if (CMAKE_GENERATOR MATCHES "Visual Studio" OR CMAKE_GENERATOR MATCHES
336
+ "Ninja Multi-Config" )
336
337
set (CMAKE_UMF_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin/$<CONFIG> )
337
338
endif ()
338
339
339
- # Define a path for custom commands to work around MSVC
340
- set (CUSTOM_COMMAND_BINARY_DIR ${CMAKE_UMF_OUTPUT_DIRECTORY} )
341
- if (MSVC )
342
- # MSVC implicitly adds $<CONFIG> to the output path
343
- set (CUSTOM_COMMAND_BINARY_DIR ${CUSTOM_COMMAND_BINARY_DIR} /$<CONFIG> )
344
- endif ()
345
-
346
340
# Sanitizer flags
347
341
if (UMF_USE_ASAN )
348
342
add_sanitizer_flag (address )
You can’t perform that action at this time.
0 commit comments