File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,13 @@ include(Assertions)
76
76
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
77
77
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
78
78
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
79
- if (MSVC )
80
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin/$<CONFIG>)
81
- endif ()
82
79
83
80
# Define rpath for libraries so that adapters can be found automatically
84
81
set (CMAKE_BUILD_RPATH "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} " )
85
82
86
83
# Define a path for custom commands to work around MSVC
87
84
set (CUSTOM_COMMAND_BINARY_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} )
88
- if (MSVC )
85
+ if (CMAKE_SYSTEM_NAME STREQUAL Windows AND NOT CMAKE_GENERATOR STREQUAL Ninja )
89
86
# MSVC implicitly adds $<CONFIG> to the output path
90
87
set (CUSTOM_COMMAND_BINARY_DIR ${CUSTOM_COMMAND_BINARY_DIR} /$<CONFIG>)
91
88
endif ()
You can’t perform that action at this time.
0 commit comments