Repository navigation
BUILD: Pass the engine CMake options under the names cxx reads - #231
Merged
Merged
Conversation
cxx names its product options _51DEGREES_BUILD_DEVICE_DETECTION and _51DEGREES_BUILD_IP_INTELLIGENCE and its 32 bit option _51DEGREES_32BIT. The two engine CMakeLists.txt files still used the old FIFTYONE_BUILD_* and 32bit names, so each engine configured both products. Both files now use the names cxx declares, and a new Pester test checks that every option an engine sets or tests before it includes cxx is one cxx declares.
This was referenced Nov 23, 2026
Draft
jwrosewell
marked this pull request as ready for review
November 23, 2026 10:14
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.
Why
cxx now names its product options
_51DEGREES_BUILD_DEVICE_DETECTIONand_51DEGREES_BUILD_IP_INTELLIGENCE, and its 32 bit option_51DEGREES_32BIT(cxxCMakeLists.txtlines 55, 56 and 126 at the commitrcpins). The two engineCMakeLists.txtfiles still setFIFTYONE_BUILD_IP_INTELLIGENCEandFIFTYONE_BUILD_DEVICE_DETECTIONand read32bit, which cxx no longer reads, so each engine configures both products. The prebuild scripts build one named target, so the other product is configured and not built, and no job is known to fail from it. The same change for .NET is 51degrees-dotnet #314.What changes
device-detection/device-detection.hash.engine.on-premise/src/main/cxx/CMakeLists.txtandip-intelligence/ip-intelligence.engine.on-premise/src/main/cxx/CMakeLists.txtuse the names cxx declares. Three lines change.ci/engine-cmake-options.Tests.ps1checks, for each engine, that every option it sets and every name it tests before including cxx is one cxx declares. The tests that read cxx are skipped where the submodule is not checked out, as in the "CI script tests" workflow.Tests
CMakeLists.txtpresent gives 8 failed of 10 onrcand 10 passed with this change. Without cxx checked out, 6 pass and 4 are skipped.rcthat touches a native module builds Ubuntu, Ubuntu ARM and Windows.