Skip to content

cmake: adding a release preset#10717

Merged
bryancall merged 1 commit intoapache:masterfrom
bryancall:cmake_release_preset
Nov 3, 2023
Merged

cmake: adding a release preset#10717
bryancall merged 1 commit intoapache:masterfrom
bryancall:cmake_release_preset

Conversation

@bryancall
Copy link
Contributor

Used for benchmarking and users can use it

Used for benchmarking and users can use it
@bryancall bryancall added the CMake work related to CMakes scripts or issues label Nov 2, 2023
@bryancall bryancall added this to the 10.0.0 milestone Nov 2, 2023
@bryancall bryancall self-assigned this Nov 2, 2023
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
Copy link
Contributor

Choose a reason for hiding this comment

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

versus "Debug"?

Do -D command line options override the presets?

Copy link
Contributor

Choose a reason for hiding this comment

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

You can set variables in the cache once it exists:

cmake --preset release
cmake -B build-release -DCMAKE_BUILD_TYPE=Debug

But I do not think CMake supports doing this in one step.

@bryancall bryancall merged commit 31ae41d into apache:master Nov 3, 2023
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Nov 4, 2023
Used for benchmarking and users can use it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CMake work related to CMakes scripts or issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants