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

Make --cmake-options="" always override others. #1648

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

alliepiper
Copy link
Collaborator

This allows a user to override things like CUB's benchmarks when they aren't needed.

@@ -167,7 +167,7 @@ function configure_preset()
local GROUP_NAME="🛠️ CMake Configure ${BUILD_NAME}"

pushd .. > /dev/null
run_command "$GROUP_NAME" cmake --preset=$PRESET --log-level=VERBOSE "${GLOBAL_CMAKE_OPTIONS[@]}" $CMAKE_OPTIONS
run_command "$GROUP_NAME" cmake --preset=$PRESET --log-level=VERBOSE $CMAKE_OPTIONS "${GLOBAL_CMAKE_OPTIONS[@]}"
Copy link
Collaborator

@miscco miscco Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we need to adopt the line

echo " -cmake-options: Additional options to pass to CMake"

to tell the users what it does now

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not following what you mean.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior still matches the docs. The only difference is how user-supplied options are ordered around hardcoded options in the build scripts.

@alliepiper alliepiper enabled auto-merge (squash) April 21, 2024 06:42
@alliepiper alliepiper merged commit ac49021 into NVIDIA:main Apr 21, 2024
591 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants