Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect usage of CMAKE_{SOURCE,BINARY}_DIR #90

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

junaire
Copy link
Contributor

@junaire junaire commented Jul 28, 2024

When importing cudnn-frontend as a 3rd party library using FetchContent, cmake incorrectly parse the file path. This is because we incorrectly using CMAKE_SOURCE_DIR variable, which should be PROJECT_SOURCE_DIR (The former one refers to the top-level source directory that contains a CMakeLists.txt, while the latter refers to the source directory of the most recent project() command

When importing cudnn-frontend as a 3rd party library using FetchContent,
cmake incorrectly parse the file path. This is because we incorrectly using
CMAKE_SOURCE_DIR variable, which should be PROJECT_SOURCE_DIR (The former one
refers to the top-level source directory that contains a CMakeLists.txt, while
the latter refers to the source directory of the most recent project() command
@junaire
Copy link
Contributor Author

junaire commented Jul 28, 2024

CC @Anerudhan

@Anerudhan Anerudhan merged commit 019bab6 into NVIDIA:main Jul 31, 2024
@junaire junaire deleted the jun/fix_cmake branch August 1, 2024 02:03
@Anerudhan Anerudhan mentioned this pull request Aug 9, 2024
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