try_compile: CMP0128 always NEW in test project
This is a report based on discussion from:
code is:
cmake_minimum_required(VERSION 3.10)
if(POLICY CMP0128)
cmake_policy(SET CMP0128 OLD)
endif()
project(p VERSION 1.0.0)
set(CMAKE_CXX_EXTENSIONS OFF) # important
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
find_package(Atomics REQUIRED)
It should work with cmake 3.16 but will fail with 3.24.
Discussing with upstream, I need to bisect to report the correct git commit. This bug is to track progress.