Skip to content

BUILD: Pass the engine CMake options under the names cxx reads - #231

Merged
jwrosewell merged 1 commit into
rcfrom
build/engine-cmake-option-names
Nov 23, 2026
Merged

jwrosewell merged 1 commit into
rcfrom
build/engine-cmake-option-names

Conversation

@jwrosewell

Copy link
Copy Markdown
Contributor

Why

cxx now names its product options _51DEGREES_BUILD_DEVICE_DETECTION and _51DEGREES_BUILD_IP_INTELLIGENCE, and its 32 bit option _51DEGREES_32BIT (cxx CMakeLists.txt lines 55, 56 and 126 at the commit rc pins). The two engine CMakeLists.txt files still set FIFTYONE_BUILD_IP_INTELLIGENCE and FIFTYONE_BUILD_DEVICE_DETECTION and read 32bit, 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

  1. device-detection/device-detection.hash.engine.on-premise/src/main/cxx/CMakeLists.txt and ip-intelligence/ip-intelligence.engine.on-premise/src/main/cxx/CMakeLists.txt use the names cxx declares. Three lines change.
  2. The new ci/engine-cmake-options.Tests.ps1 checks, 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

  1. Pester 6.2 on Windows with cxx's CMakeLists.txt present gives 8 failed of 10 on rc and 10 passed with this change. Without cxx checked out, 6 pass and 4 are skipped.
  2. Not yet run: a CMake configure of each engine before and after, and the native builds. A pull request into rc that touches a native module builds Ubuntu, Ubuntu ARM and Windows.

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.
@jwrosewell
jwrosewell marked this pull request as ready for review November 23, 2026 10:14
@jwrosewell
jwrosewell merged commit 31b9c35 into rc Nov 23, 2026
6 checks passed
@jwrosewell
jwrosewell deleted the build/engine-cmake-option-names branch November 23, 2026 10:14
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