~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to tests/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:
50
50
        # Building and linking it
51
51
        if(NOT TARGET ${BIN})
52
52
                add_executable(${BIN} EXCLUDE_FROM_ALL "${BIN}.c")
53
 
                target_sources(${BIN} PUBLIC $<TARGET_OBJECTS:ctwmlib>)
 
53
                target_link_libraries(${BIN} ctwmlib)
54
54
 
55
55
                # Few of our tests really need any of the X or other libs we pull in.
56
56
                # However, most of the .o's for ctwm itself are going to have some