diff --git a/cmake/Corrosion.cmake b/cmake/Corrosion.cmake index 590f0191..12b38722 100644 --- a/cmake/Corrosion.cmake +++ b/cmake/Corrosion.cmake @@ -123,7 +123,7 @@ function(_corrosion_set_imported_location_deferred target_name base_property out elseif(output_directory) set(curr_out_dir "${output_directory}") else() - set(curr_out_dir "${CMAKE_CURRENT_BINARY_DIR}") + set(curr_out_dir "${CMAKE_CURRENT_BINARY_DIR}/$") endif() string(REPLACE "\$" "${config_type}" curr_out_dir "${curr_out_dir}") message(DEBUG "Setting ${base_property}_${config_type_upper} for target ${target_name}" @@ -233,7 +233,7 @@ function(_corrosion_copy_byproduct_deferred target_name output_dir_prop_names ca # Fallback to the default directory. We do not append the configuration directory here # and instead let CMake do this, since otherwise the resolving of dynamic library # imported paths may fail. - set(curr_out_dir "${CMAKE_CURRENT_BINARY_DIR}") + set(curr_out_dir "${CMAKE_CURRENT_BINARY_DIR}/$") endif() set(multiconfig_out_dir_genex "${multiconfig_out_dir_genex}$<$:${curr_out_dir}>") endforeach()