Skip to content

cmake: fix LOCATION property read errors in target debug function#20828

Closed
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cmtgtpropfix
Closed

cmake: fix LOCATION property read errors in target debug function#20828
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cmtgtpropfix

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Mar 6, 2026

Exclude reading certain props for certain target types to avoid these errors:

CMake Error at CMake/Utilities.cmake:71 (get_property):
  The LOCATION property may not be read from target "...".  Use the target
  name directly with add_custom_command, or use the generator expression
  $<TARGET_FILE>, as appropriate.

(and the same in line 78.)

Follow-up to 855acb3 #17701

Exclude reading certain props for certain target types to avoid these
errors:
```
CMake Error at CMake/Utilities.cmake:71 (get_property):
CMake Error at CMake/Utilities.cmake:78 (get_property):
  The LOCATION property may not be read from target "...".  Use the target
  name directly with add_custom_command, or use the generator expression
  $<TARGET_FILE>, as appropriate.
```

Follow-up to 855acb3 curl#17701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant