Repository navigation
CMake: add public options MICROTEX_BUILD_STATIC, MICROTEX_HAVE_AUTO_FONT_FIND, EX_GLYPH_RENDER_TYPE - #196
Open
pthom wants to merge 1 commit into
Open
CMake: add public options MICROTEX_BUILD_STATIC, MICROTEX_HAVE_AUTO_FONT_FIND, EX_GLYPH_RENDER_TYPE #196pthom wants to merge 1 commit into
pthom wants to merge 1 commit into
Conversation
…EX_GLYPH_RENDER_TYPE options replace the internal cache variables
_BUILD_STATIC, _HAVE_AUTO_FONT_FIND and _GLYPH_RENDER_TYPE were undocumented cache variables
that consumers had to force (e.g. set(_BUILD_STATIC ON CACHE BOOL "" FORCE)). They become
options with the same defaults, visible in cmake -L; the ${_HAVE_AUTO_FONT_FIND_} typo is fixed.
A static build defines MICROTEX_STATIC as PUBLIC on the target, so that consumers do not see
dllimport (see microtexexport.h). _DISABLE_ALIAS is dropped: VERSION / SOVERSION only matter
for shared libraries, so NOT MICROTEX_BUILD_STATIC is the whole condition.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
I'm using MicroTeX inside my project Dear ImGui Bundle with great success. Many thanks for this excellent library!
These options replace the internal undocumented cache variables _BUILD_STATIC, _HAVE_AUTO_FONT_FIND and _GLYPH_RENDER_TYPE. Consumers had to force those undocumented vars (e.g.
set(_BUILD_STATIC ON CACHE BOOL "" FORCE)).They become options with the same defaults, visible in cmake -L;
the
${_HAVE_AUTO_FONT_FIND_}typo is fixed.A static build defines
MICROTEX_STATICas PUBLIC on the target, so that consumers do not see dllimport (see microtexexport.h)._DISABLE_ALIAS is dropped: VERSION / SOVERSION only matter for shared libraries, so NOT MICROTEX_BUILD_STATIC is the whole condition.