Skip to content

Conversation

@NWilson
Copy link
Member

@NWilson NWilson commented Oct 7, 2025

The CMake build fails on Solaris out of the box, because our Autoconf has clever logic to add -ltermcap as required by libreadline, but the CMake scripts just don't. And worse, CMake defaults to search for and link to all the third-party libraries, whereas Autoconf is set to not link them unless requested.

  • Fix Solaris vanilla CMake build; remove CI override that forces use of termcap.
  • Move up pcre2_use_system_extensions to the top of CMakeLists.txt
  • Use cmake_push_check_state() instead of manual management of state
  • Move _GNU_SOURCE detection into pcre2_use_system_extensions, to match Autoconf

@NWilson NWilson force-pushed the user/niwilson/termcap-fixes branch from 7301200 to 5c1df9f Compare October 7, 2025 11:36
@NWilson NWilson force-pushed the user/niwilson/termcap-fixes branch from 5c1df9f to bc57c70 Compare October 7, 2025 12:22
@NWilson NWilson merged commit 0ee6302 into master Oct 8, 2025
35 checks passed
@NWilson NWilson deleted the user/niwilson/termcap-fixes branch October 8, 2025 17:22
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.

3 participants