Skip to content

Conversation

@ntsh-oni
Copy link
Contributor

glslang has two CMake options: BUILD_EXTERNAL and BUILD_WERROR.

If glslang is linked as a library in a project, this is an issue as, on CMake GUI, these options appear as-is, which doesn't indicate where they come from. This can also conflict with other libraries which also do not prefix their CMake options.

Comment on lines +49 to +50
option(GLSLANG_BUILD_EXTERNAL "Build external dependencies in /External" ON)
option(GLSLANG_BUILD_WERROR "Enable warnings as errors (default is OFF)" OFF)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add a deprecation notice, since changing variable names like this is sure to catch developers off guard.

if (DEFINED BUILD_EXTERNAL)
    message(DEPRECATION "The BUILD_EXTERNAL build options has been deprecated and replaced by GLSLANG_BUILD_EXTERNAL, please use the new variable")
endif()

Or a similar message to get the point across.

@AnyOldName3
Copy link
Contributor

It looks like this has been attempted before as #2115.

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