File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,13 @@ include(Assertions)
7676set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
7777set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
7878set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
79- if (MSVC )
80- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin/$<CONFIG>)
81- endif ()
8279
8380# Define rpath for libraries so that adapters can be found automatically
8481set (CMAKE_BUILD_RPATH "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} " )
8582
8683# Define a path for custom commands to work around MSVC
8784set (CUSTOM_COMMAND_BINARY_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} )
88- if (MSVC )
85+ if (CMAKE_SYSTEM_NAME STREQUAL Windows AND NOT CMAKE_GENERATOR STREQUAL Ninja )
8986 # MSVC implicitly adds $<CONFIG> to the output path
9087 set (CUSTOM_COMMAND_BINARY_DIR ${CUSTOM_COMMAND_BINARY_DIR} /$<CONFIG>)
9188endif ()
You can’t perform that action at this time.
0 commit comments