Skip to content

Add XYZ_INCLUDE_DIR / XYZ_LIB_DIR for CMake dependencies#91

Closed
pietern wants to merge 4 commits intopytorch:masterfrom
pietern:cmake-nccl-dirs
Closed

Add XYZ_INCLUDE_DIR / XYZ_LIB_DIR for CMake dependencies#91
pietern wants to merge 4 commits intopytorch:masterfrom
pietern:cmake-nccl-dirs

Conversation

@pietern
Copy link
Contributor

@pietern pietern commented Sep 27, 2017

It is flexible to have both XYZ_INCLUDE_DIR and XYZ_LIB_DIR for each dependency instead of just XYZ_ROOT_DIR. The gloo build should work with whatever directory structure is used for dependencies.

This change also slightly changes the CMake variable naming to remove some cognitive overhead regarding upcase/downcase variables and multiple messages in the CMake output.

Also see pytorch/pytorch#2877

This commit also slightly changes the CMake variable naming to remove
some cognitive overhead regarding upcase/downcase variables and
multiple messages in the CMake output.

Input variables are called XYZ_INCLUDE_DIR and XYZ_LIB_DIR, and the
internal/output variables are called XYZ_INCLUDE_DIRS and
XYZ_LIBRARIES. This looks to be in line with most CMake modules.
@soumith
Copy link
Contributor

soumith commented Sep 27, 2017

sweet, looks good to me.

@pytorch pytorch deleted a comment from facebook-github-bot Sep 27, 2017
@pietern pietern deleted the cmake-nccl-dirs branch September 27, 2017 22:55
lukeyeager added a commit to lukeyeager/caffe2 that referenced this pull request Oct 3, 2017
Brings in cmake changes from pytorch/gloo#91
cosmicEarth pushed a commit to cosmicEarth/gloo that referenced this pull request Apr 9, 2024
Summary:
It is flexible to have both XYZ_INCLUDE_DIR and XYZ_LIB_DIR for each dependency instead of just XYZ_ROOT_DIR. The gloo build should work with whatever directory structure is used for dependencies.

This change also slightly changes the CMake variable naming to remove some cognitive overhead regarding upcase/downcase variables and multiple messages in the CMake output.

Also see pytorch/pytorch#2877
Closes pytorch/gloo#91

Differential Revision: D5925849

Pulled By: pietern

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants