CMP0083: warns during try_compile
With this code:
cmake_minimum_required(VERSION 3.13) cmake_policy(SET CMP0083 NEW) project(Example C) include(CheckIncludeFiles) set(CMAKE_POSITION_INDEPENDENT_CODE ON) check_include_files("stddef.h" HAVE_STDDEF_H)
CMake Warning (dev) in /.../CMakeFiles/CMakeTmp/CMakeLists.txt: Policy CMP0083 is not set: Add PIE options when linking executable. Run "cmake --help-policy CMP0083" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it.