Skip to content

Change KTX_FEATURE_STATIC_LIBRARY to BUILD_SHARED_LIBS#953

Merged
MarkCallow merged 1 commit into
KhronosGroup:mainfrom
ux3d:cmake_shared_lib
Oct 28, 2024
Merged

Change KTX_FEATURE_STATIC_LIBRARY to BUILD_SHARED_LIBS#953
MarkCallow merged 1 commit into
KhronosGroup:mainfrom
ux3d:cmake_shared_lib

Conversation

@UX3D-haertl
Copy link
Copy Markdown
Member

@UX3D-haertl UX3D-haertl commented Oct 25, 2024

This changes KTX_FEATURE_STATIC_LIBRARY to the inbuild cmake variable BUILD_SHARED_LIBS
Static builds are enforced for fmt and astc-encoder.
Both library use BUILD_SHARED_LIBS themself, so this fixes issues if KTX-Software is used as dependecy in other projects (which set BUILD_SHARED_LIBS)

Fixes #935

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 25, 2024

CLA assistant check
All committers have signed the CLA.

@MarkCallow MarkCallow merged commit 970bef3 into KhronosGroup:main Oct 28, 2024
richgel999 pushed a commit to BinomialLLC/KTX-Software-Binomial-Fork that referenced this pull request Mar 9, 2026
)

This changes KTX_FEATURE_STATIC_LIBRARY to the built-in cmake variable
BUILD_SHARED_LIBS.

Static builds are enforced for fmt and astc-encoder. Both libraries use
BUILD_SHARED_LIBS themself, so this fixes issues if KTX-Software
is used as dependecy in other projects (which set BUILD_SHARED_LIBS).

Fixes KhronosGroup#935
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.

Use BUILD_SHARED_LIBS instead of KTX_FEATURE_STATIC_LIBRARY

3 participants