Skip to content

Conversation

@Green-Sky
Copy link

This fixes 3 issues with this line.

  • CMAKE_HOME_DIRECTORY is an internal var that is no supposed to be used
  • CMAKE_HOME_DIRECTORY/CMAKE_SOURCE_DIR can be wrong, as it does not always refer to the current CMakeLists.txt (eg in fetch content)
  • append to list instead of setting/overwriting it

This fixes 3 issues with this line.
- CMAKE_HOME_DIRECTORY is an internal var that is no supposed to be used
- CMAKE_HOME_DIRECTORY/CMAKE_SOURCE_DIR can be wrong, as it does not
  always refer to the current CMakeLists.txt (eg in fetch content)
- append to list instead of setting/overwriting it
@Green-Sky
Copy link
Author

Do note that CMAKE_HOME_DIRECTORY is used in a lot more places, which makes me sad...

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.

1 participant