Repository navigation
cvcGL: don't use M_PI in lsystem_nodes.cpp (fixes Windows cvcgl package build) - #582
Merged
Merged
Conversation
The standalone cvcgl package build (cvcpkg recipe) doesn't inherit libcvc's top-level MSVC _USE_MATH_DEFINES, so M_PI is undeclared there and the v3.5.0 publish-cvcpkg Windows cvcgl build failed (C2065 at sunDir). Use a local constexpr kPi like LodGraphicsNode.cpp; same double value, same output.
transfix
added a commit
that referenced
this pull request
Oct 9, 2026
Patch release carrying the fixes since 3.5.0: the cvcGL M_PI build fix (#582), CameraController Map mode holding its pose (#584), the tag-release / publish workflow fixes (#585, #586), macro-safe public headers after <signal.h> / <sys/param.h> (#588), and the X11 `None` renames (#589: ariadne::BorderShow::None -> Off, gl::Switch::None -> Off). Bumps project(VERSION) 3.5.0 -> 3.5.1 and every cvcpkg recipe's upstream_version to match (cvc_revision stays 1, per the recipe-version gate).
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.
The v3.5.0
publish-cvcpkgrun failed to build the cvcgl package on Windows (run 37700967627, jobbuild (release, 311, windows-2022, windows, x86_64)):libcvc's top-level CMake adds
_USE_MATH_DEFINESfor MSVC, but the standalone cvcgl package build doesn't inherit it.sunDir()(added in #563) is the only use ofM_PIin cvcGL library code. This switches it to a localconstexpr double kPi, the same convention assrc/cvcGL/LodGraphicsNode.cpp. The value is the same double, so output is unchanged.src/cvc/lsysalso usesM_PI, but it is built inside libcvc, which gets the define. libcvc's Windows package built and published fine in the same run.clang-format (changed lines) is clean. After this merges, cvcgl for Windows needs a
publish-cvcpkgdispatch to get onto cvcpkg.org.