Skip to content

Commit

Permalink
setting properties is too late
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwe committed May 14, 2024
1 parent b24a13a commit 4c676fe
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions generator/src/subcommands/gen_cmake/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,23 +187,6 @@ impl CargoTarget {
INTERFACE_COR_PACKAGE_MANIFEST_PATH \"{package_manifest_path}\"
)
# Initialize the `<XYZ>_OUTPUT_DIRECTORY` properties based on `CMAKE_<XYZ>_OUTPUT_DIRECTORY`.
foreach(output_var RUNTIME_OUTPUT_DIRECTORY ARCHIVE_OUTPUT_DIRECTORY LIBRARY_OUTPUT_DIRECTORY PDB_OUTPUT_DIRECTORY)
if (DEFINED \"CMAKE_${{output_var}}\")
set_property(TARGET {target_name} PROPERTY INTERFACE_${{output_var}} \"${{CMAKE_${{output_var}}}}\")
message(STATUS \"Setting INTERFACE_${{output_var}}=${{CMAKE_${{output_var}}}} for target {target_name}.\")
endif()
foreach(config_type ${{CMAKE_CONFIGURATION_TYPES}})
string(TOUPPER \"${{config_type}}\" config_type_upper)
if (DEFINED \"CMAKE_${{output_var}}_${{config_type_upper}}\")
set_property(TARGET {target_name}
PROPERTY \"INTERFACE_${{output_var}}_${{config_type_upper}}\"
\"${{CMAKE_${{output_var}}_${{config_type_upper}}}}\")
endif()
endforeach()
endforeach()
if(archive_byproducts)
_corrosion_copy_byproducts(
{target_name} INTERFACE_ARCHIVE_OUTPUT_DIRECTORY \"${{cargo_build_out_dir}}\" \"${{archive_byproducts}}\" FALSE
Expand Down

0 comments on commit 4c676fe

Please sign in to comment.