-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
cmake is now in its cmake-4.* versions (e.g. pkgsrc 2025Q3 provides cmake-4.1.1) and they have dropped compatibility with the old versions.
Self cmake files set:
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)and newer cmake refuses to work with that, as its minimum compat level is 3.5. The problem is that Self's cmake files don't seem to work with 3.5.
Current files with cmake-3.* warn:
CMake Warning (dev) in vm/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
If I bump the minimum version to
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)The flags from COMPILE_DEFINITIONS_<Config> disappear from the build flags:
$ grep --count IS_FOR build-debug{,-3.5}/vm/CMakeFiles/Self.dir/flags.make
build-debug/vm/CMakeFiles/Self.dir/flags.make:2
build-debug-3.5/vm/CMakeFiles/Self.dir/flags.make:0
PS: This is also related to #141 where the same flags are missing from the precompiled header rules messing up precompiled header use.
Metadata
Metadata
Assignees
Labels
No labels