Skip to content

Comments

cmake: open version.mk relative to repo root#1912

Open
sielicki wants to merge 1 commit intoNVIDIA:masterfrom
sielicki:master
Open

cmake: open version.mk relative to repo root#1912
sielicki wants to merge 1 commit intoNVIDIA:masterfrom
sielicki:master

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 <nick.sielicki@hpe.com>
@xiaofanl-nvidia
Copy link
Collaborator

@nv-udeodhar to take a look.

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.

3 participants