Skip to content

Conversation

@tmikov
Copy link
Contributor

@tmikov tmikov commented Apr 23, 2025

Summary:
CMAKE_SOURCE_DIR contains the directory of the "root" CMakeLists.txt,
but PROJECT_SOURCE_DIR contains the directory of the closest
project() directive. Using the former is usually the wrong thing to
do, if projects can be nested.

Closes #1678

Differential Revision: D73482392

Summary:
`CMAKE_SOURCE_DIR` contains the directory of the "root" CMakeLists.txt,
but `PROJECT_SOURCE_DIR` contains the directory of the closest
`project()` directive. Using the former is usually the wrong thing to
do, if projects can be nested.

Closes facebook#1678

Differential Revision: D73482392
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Apr 23, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73482392

facebook-github-bot pushed a commit that referenced this pull request Apr 23, 2025
Summary:
Pull Request resolved: #1679

`CMAKE_SOURCE_DIR` contains the directory of the "root" CMakeLists.txt,
but `PROJECT_SOURCE_DIR` contains the directory of the closest
`project()` directive. Using the former is usually the wrong thing to
do, if projects can be nested.

Closes #1678

Reviewed By: neildhar

Differential Revision: D73482392

fbshipit-source-id: 94db57b186a378560d0508a880ebaa005122ca8f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants