Skip to content

Conversation

@sielicki
Copy link

Description

under FetchContent usage, CMAKE_SOURCE_DIR does not refer to the nccl project root until project() is invoked, but we need to parse the version before we can call project(). Avoid by using CMAKE_CURRENT_LIST_DIR instead, which remains stable between project() calls.

Related Issues

N/A

Changes & Impact

N/A, build annoyance.

Performance Impact

N/A

under FetchContent usage, CMAKE_SOURCE_DIR does not refer to the nccl
project root until project() is invoked, but we need to parse the
version before we can call project(). Avoid by using
CMAKE_CURRENT_LIST_DIR instead, which remains stable between project()
calls.

Signed-off-by: Nicholas Sielicki <[email protected]>
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