Skip to content

cmake: specify CMAKE_* variables as CACHE - #992

Open
dacav wants to merge 1 commit into
mainfrom
dacav/cmake-options-cache
Open

cmake: specify CMAKE_* variables as CACHE#992
dacav wants to merge 1 commit into
mainfrom
dacav/cmake-options-cache

Conversation

@dacav

@dacav dacav commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

While keeping current default, honours the user choices.

While keeping current default, honours the user choices.
Comment thread CMakeLists.txt
set(CMAKE_COLOR_MAKEFILE OFF)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "Color output during build")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • why leave out CMAKE_POSITION_INDEPENDENT_CODE?
  • keeping style with below, option would be the better choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants