Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jan 2, 2025

Problem:

  • Users of the function may pass in qualified path names for inputs; it's not correct to simply prepend the current source directory.

Solution:

  • Use file(REAL_PATH ...) to calculate the path, which will properly handle either a qualified path or a path relative to the current source directory.

Note:

  • CMake is limited in list(TRANSFORM ...) to fixed functions, hence this must be done with a regular foreach.

Problem:
- Users of the function may pass in qualified path names for inputs; it's not
  correct to simply prepend the current source directory.

Solution:
- Use `file(REAL_PATH ...)` to calculate the path, which will properly handle
  either a qualified path or a path relative to the current source directory.

Note:
- CMake is limited in `list(TRANSFORM ...)` to fixed functions, hence this must
  be done with a regular `foreach`.
@elbeno elbeno merged commit 9b0e790 into intel:main Jan 3, 2025
22 checks passed
@elbeno elbeno deleted the fix-strcatgen-inputs branch January 3, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants