diff --git a/api/sixtyfps-cpp/CMakeLists.txt b/api/sixtyfps-cpp/CMakeLists.txt index 5f7e34600..49660a5d8 100644 --- a/api/sixtyfps-cpp/CMakeLists.txt +++ b/api/sixtyfps-cpp/CMakeLists.txt @@ -168,10 +168,14 @@ if(WIN32) install(FILES $ TYPE LIB) # Copy the dll to the top-level bin directory, where the examples will # will also be located, so that they can find the dll. + get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) + if(GENERATOR_IS_MULTI_CONFIG) + set(config_subdir_genex "$/") + endif() add_custom_target(SixtyFPS_dll_convenience ALL DEPENDS sixtyfps-cpp-shared COMMAND ${CMAKE_COMMAND} -E copy_if_different $ - ${CMAKE_BINARY_DIR}/bin/$) + ${CMAKE_BINARY_DIR}/bin/${config_subdir_genex}$) endif() install(PROGRAMS $ TYPE BIN)