~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Matthew Fuller
  • Date: 2025-05-25 22:41:44 UTC
  • mfrom: (717.1.5 dev)
  • Revision ID: fullermd@over-yonder.net-20250525224144-iteomq72mm5m5rqt
Bump cmake minimum version to from 3.6 to 3.22.

As of 3.31, cmake has deprecated support older than 3.10; while it still
works, it complains, and probably won't work for too much longer.  Per
repology.org, Ubuntu 22.04 includes 3.22, Debian 11 has 3.25 available,
CentOS Stream 8 has 3.26, and so on down the line.  So this shouldn't be
notable to anybody on a reasonably recent system.

This allows some minor cleanups, and removal of (probably scarcely
tested) conditional support for older versions.  Our usage of cmake's
vars for finding Xrandr apparently already required 3.14 (addition of
X11_Xrandr_FOUND etc), so anybody in the bottom half of this change was
already was in bad shape anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cmake_minimum_required(VERSION 3.6)
 
1
# As of 2025-05, Ubuntu 22.04 LTS has 3.22.
 
2
cmake_minimum_required(VERSION 3.22)
2
3
 
3
4
# Figure our version
4
5
file(READ "VERSION" vf_str)
135
136
# with access to all our internal funcs.
136
137
add_library(ctwmlib OBJECT ${CTWMSRC})
137
138
add_executable(ctwm "ctwm_wrap.c")
138
 
target_sources(ctwm PUBLIC $<TARGET_OBJECTS:ctwmlib>)
 
139
target_link_libraries(ctwm ctwmlib)
139
140
target_link_libraries(ctwm ${CTWMLIBS})
140
141
 
141
142
# This doesn't really serve much purpose at the moment, so it's not even