Skip to content

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
NanoMichael:openmathfrom
pthom:pr_cmake_options
Open

pthom wants to merge 1 commit into
NanoMichael:openmathfrom
pthom:pr_cmake_options

Conversation

@pthom

@pthom pthom commented Sep 23, 2026

Copy link
Copy Markdown

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_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.

…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

No deployments
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.

1 participant